Structure
Redirect
Specifies the type of redirect that the client should receive.
struct Redirect
Topics
Instance Properties
var status: HTTPStatusAssociatedHTTPStatusfor this redirect type.
Type Properties
static var normal: RedirectForces the redirect to come with a GET, regardless of req method.303 see otherstatic var permanent: RedirectA cacheable redirect. Not all user-agents preserve request method and body, so this should only be used for GET or HEAD requests301 permanentstatic var permanentPost: RedirectRedirect where the request method and the body will not be altered. This should be used for POST redirects.308 Permanent Redirectstatic var temporary: RedirectMaintains original request method, ie: PUT will call PUT on redirect.307 Temporary