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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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]