Structurevapor 4.106.3Vapor
Redirect
Specifies the type of redirect that the client should receive.
Redirect.swift:71struct Redirect
Citizens in Vapor
Type members
static var normal: Redirect
Forces the redirect to come with a GET, regardless of req method.
303 see other
static var permanent: Redirect
A cacheable redirect. Not all user-agents preserve request method and body, so this should only be used for GET or HEAD requests
301 permanent
static var permanentPost: Redirect
Redirect where the request method and the body will not be altered. This should be used for POST redirects.
308 Permanent Redirect
static var temporary: Redirect
Maintains original request method, ie: PUT will call PUT on redirect.
307 Temporary
Instance members
var status: HTTPStatus
Associated
HTTPStatus
for this redirect type.