Static Propertyvapor 4.114.1Vapor
permanentPost
Redirect where the request method and the body will not be altered. This should be used for POST redirects. 308 Permanent Redirect
static var permanentPost: Redirect { get }
Redirect where the request method and the body will not be altered. This should be used for POST redirects. 308 Permanent Redirect
static var permanentPost: Redirect { get }
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct Redirect
Specifies the type of redirect that the client should receive.
static var normal: Redirect { get }
Forces the redirect to come with a GET, regardless of req method. 303 see other
static var permanent: Redirect { get }
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 temporary: Redirect { get }
Maintains original request method, ie: PUT will call PUT on redirect. 307 Temporary
var status: HTTPStatus { get }
Associated HTTPStatus
for this redirect type.