Vapor Documentation Beta

Enumeration Redirect‚ÄčType

public enum RedirectType

Specifies the type of redirect that the client should receive.

Enumeration Cases

permanent

case permanent

A cacheable redirect. 301 permanent

normal

case normal

Forces the redirect to come with a GET, regardless of req method. 303 see other

temporary

case temporary

Maintains original request method, ie: PUT will call PUT on redirect. 307 Temporary

Properties

status

var status: HTTPStatus

Associated HTTPStatus for this redirect type.