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
|
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]
|
[inline]
|
||||||
pub fn (mut r Response) plain() &Response {
|
pub fn (mut r Response) plain() &Response {
|
||||||
r.buf += cpy_str(r.buf, "Content-Type: text/plain\r\n")
|
r.buf += cpy_str(r.buf, "Content-Type: text/plain\r\n")
|
||||||
|
|
Loading…
Reference in New Issue