View definition

(*RequestCtx).Redirect

Defined in github.com/valyala/fasthttp/server.go

Description

Redirect sets 'Location: uri' response header and sets the given statusCode.

statusCode must have one of the following values:

* StatusMovedPermanently (301)
* StatusFound (302)
* StatusSeeOther (303)
* StatusTemporaryRedirect (307)

All other statusCode values are replaced by StatusFound (302).

The redirect uri may be either absolute or relative to the current request uri.

Redirect is referenced in 6 repositories

github.com/valyala/fasthttp github.com/kataras/iris github.com/tpbowden/swarm-ingress-router

...