mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
vweb: refactor HTTP request parsing (#8874)
This commit is contained in:
parent
2f9687d29b
commit
7e08e84bc1
7 changed files with 225 additions and 151 deletions
|
@ -43,3 +43,8 @@ pub fn (mut app App) cookie() vweb.Result {
|
|||
app.set_cookie(name: 'cookie', value: 'test')
|
||||
return app.text('Headers: $app.headers')
|
||||
}
|
||||
|
||||
[post]
|
||||
pub fn (mut app App) post() vweb.Result {
|
||||
return app.text('Post body: $app.req.data')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue