View definition

(*RequestCtx).RedirectBytes

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

Description

RedirectBytes 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.

RedirectBytes is referenced in 0 repositories