1
0
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:
Miccah
2021-02-27 16:18:25 -06:00
committed by GitHub
parent 2f9687d29b
commit 7e08e84bc1
7 changed files with 225 additions and 151 deletions

View File

@ -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')
}