Redirect contains the http request reference and redirects status code and location.
| 11 | |
| 12 | // Redirect contains the http request reference and redirects status code and location. |
| 13 | type 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. |
| 20 | func (r Redirect) Render(w http.ResponseWriter) error { |
nothing calls this directly
no outgoing calls
no test coverage detected