MCPcopy
hub / github.com/gin-gonic/gin / Redirect

Struct Redirect

render/redirect.go:13–17  ·  render/redirect.go::Redirect

Redirect contains the http request reference and redirects status code and location.

Source from the content-addressed store, hash-verified

11
12// Redirect contains the http request reference and redirects status code and location.
13type Redirect struct {
14 Code int
15 Request *http.Request
16 Location string
17}
18
19// Render (Redirect) redirects the http request to new location and writes redirect response.
20func (r Redirect) Render(w http.ResponseWriter) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected