Redirect replies to the request with a redirect to url and with httpcode default you can use http.StatusFound
(code int, targetUrl string)
| 368 | // Redirect replies to the request with a redirect to url and with httpcode |
| 369 | // default you can use http.StatusFound |
| 370 | func (ctx *HttpContext) Redirect(code int, targetUrl string) error { |
| 371 | return ctx.response.Redirect(code, targetUrl) |
| 372 | } |
| 373 | |
| 374 | // QueryString returns request parameters according to key |
| 375 | func (ctx *HttpContext) QueryString(key string) string { |