WriteString writes a simple string to the response. Returns the number of bytes written and any write error encountered.
(body string)
| 3367 | // |
| 3368 | // Returns the number of bytes written and any write error encountered. |
| 3369 | func (ctx *Context) WriteString(body string) (n int, err error) { |
| 3370 | return io.WriteString(ctx.writer, body) |
| 3371 | } |
| 3372 | |
| 3373 | const ( |
| 3374 | // ContentTypeHeaderKey is the header key of "Content-Type". |
no outgoing calls