mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: make html() return Result
This commit is contained in:
parent
352cf91ba2
commit
1b07710ab3
@ -100,8 +100,9 @@ pub fn (mut ctx Context) send_response_to_client(mimetype string, res string) bo
|
||||
return true
|
||||
}
|
||||
|
||||
pub fn (mut ctx Context) html(s string) {
|
||||
pub fn (mut ctx Context) html(s string) Result {
|
||||
ctx.send_response_to_client('text/html', s)
|
||||
return Result{}
|
||||
}
|
||||
|
||||
pub fn (mut ctx Context) text(s string) Result {
|
||||
|
Loading…
x
Reference in New Issue
Block a user