mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: refactor HTTP request parsing (#8874)
This commit is contained in:
@ -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')
|
||||
}
|
||||
|
Reference in New Issue
Block a user