MCPcopy Create free account
hub / github.com/devfeel/dotweb / Redirect

Method Redirect

context.go:370–372  ·  view source on GitHub ↗

Redirect replies to the request with a redirect to url and with httpcode default you can use http.StatusFound

(code int, targetUrl string)

Source from the content-addressed store, hash-verified

368// Redirect replies to the request with a redirect to url and with httpcode
369// default you can use http.StatusFound
370func (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
375func (ctx *HttpContext) QueryString(key string) string {

Callers

nothing calls this directly

Calls 1

RedirectMethod · 0.65

Tested by

no test coverage detected