mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.http: Response.text
-> Response.body
(#14478)
This commit is contained in:
@ -11,7 +11,7 @@ fn (h ExampleHandler) handle(req Request) Response {
|
||||
})
|
||||
}
|
||||
mut status_code := 200
|
||||
res.text = match req.url {
|
||||
res.body = match req.url {
|
||||
'/foo' {
|
||||
'bar\n'
|
||||
}
|
||||
|
Reference in New Issue
Block a user