Improve vweb example to output the cookie

pull/3659/head
Exa Stencil 2020-02-05 11:53:16 +02:00 committed by GitHub
parent 2b433cdf64
commit 1db07f52d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -38,8 +38,6 @@ pub fn (app mut App) text() {
}
pub fn (app mut App) cookie() {
app.vweb.text('Headers:')
app.vweb.set_cookie('cookie', 'test')
app.vweb.text(app.vweb.headers)
app.vweb.text('Text: hello world')
app.vweb.text('Headers: $app.vweb.headers')
}