SendString writes a plain-text string to the response.
(body string)
| 645 | |
| 646 | // SendString writes a plain-text string to the response. |
| 647 | func (c *Ctx) SendString(body string) error { |
| 648 | c.Response.Write([]byte(body)) |
| 649 | return nil |
| 650 | } |
| 651 | |
| 652 | // StatusMessage returns the text for a given HTTP status code. |
| 653 | func StatusMessage(status int) string { |