mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
Improve vweb example to output the cookie
This commit is contained in:
parent
2b433cdf64
commit
1db07f52d1
1 changed files with 1 additions and 3 deletions
|
@ -38,8 +38,6 @@ pub fn (app mut App) text() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (app mut App) cookie() {
|
pub fn (app mut App) cookie() {
|
||||||
app.vweb.text('Headers:')
|
|
||||||
app.vweb.set_cookie('cookie', 'test')
|
app.vweb.set_cookie('cookie', 'test')
|
||||||
app.vweb.text(app.vweb.headers)
|
app.vweb.text('Headers: $app.vweb.headers')
|
||||||
app.vweb.text('Text: hello world')
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue