mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
vweb: change Context.headers from string to struct Header (#10749)
This commit is contained in:
parent
d5e0fa6d1b
commit
1a6a7a678a
2 changed files with 18 additions and 24 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue