MCPcopy
hub / github.com/labstack/echo / NoContent

Method NoContent

context.go:726–729  ·  view source on GitHub ↗

NoContent sends a response with no body and a status code.

(code int)

Source from the content-addressed store, hash-verified

724
725// NoContent sends a response with no body and a status code.
726func (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.
732func (c *Context) Redirect(code int, url string) error {

Calls 1

WriteHeaderMethod · 0.45