1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: change Context.headers from string to struct Header (#10749)

This commit is contained in:
Miccah
2021-07-18 04:21:07 -05:00
committed by GitHub
parent d5e0fa6d1b
commit 1a6a7a678a
2 changed files with 18 additions and 24 deletions

View File

@ -49,7 +49,7 @@ pub fn (mut app App) show_text() vweb.Result {
pub fn (mut app App) cookie() vweb.Result {
app.set_cookie(name: 'cookie', value: 'test')
return app.text('Headers: $app.headers')
return app.text('Response Headers\n$app.header')
}
[post]