NoContent sends a response with no body and a status code.
(code int)
| 724 | |
| 725 | // NoContent sends a response with no body and a status code. |
| 726 | func (c *Context) NoContent(code int) error { |
| 727 | c.response.WriteHeader(code) |
| 728 | return nil |
| 729 | } |
| 730 | |
| 731 | // Redirect redirects the request to a provided URL with status code. |
| 732 | func (c *Context) Redirect(code int, url string) error { |