picoev: add html() content-type method
parent
77e56aa3f9
commit
3436ae99fc
|
@ -46,6 +46,12 @@ pub fn (mut r Response) content_type(s string) &Response {
|
|||
return r
|
||||
}
|
||||
|
||||
[inline]
|
||||
pub fn (mut r Response) html() &Response {
|
||||
r.buf += cpy_str(r.buf, "Content-Type: text/html\r\n")
|
||||
return r
|
||||
}
|
||||
|
||||
[inline]
|
||||
pub fn (mut r Response) plain() &Response {
|
||||
r.buf += cpy_str(r.buf, "Content-Type: text/plain\r\n")
|
||||
|
|
Loading…
Reference in New Issue