WriteHtmlC write (httpCode, string, text/html) to response
(code int, contents ...interface{})
| 592 | |
| 593 | // WriteHtmlC write (httpCode, string, text/html) to response |
| 594 | func (ctx *HttpContext) WriteHtmlC(code int, contents ...interface{}) error { |
| 595 | content := fmt.Sprint(contents...) |
| 596 | return ctx.WriteBlobC(code, MIMETextHTMLCharsetUTF8, []byte(content)) |
| 597 | } |
| 598 | |
| 599 | // WriteBlob write []byte content to response |
| 600 | func (ctx *HttpContext) WriteBlob(contentType string, b []byte) error { |