Instance Methodvapor 4.114.1Vapor
encodeResponse(for:)
AnyResponse.swift:47func encodeResponse(for request: Request) -> EventLoopFuture<Response>
func encodeResponse(for request: Request) -> EventLoopFuture<Response>
s5Vapor11AnyResponseV06encodeC03for7NIOCore15EventLoopFutureCyAA0C0CGAA7RequestC_tF
What are these?2XV6Q
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 AnyResponse
A type erased response useful for routes that can return more than one type.
final class Request
Represents an HTTP request in an application.
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
final class Response
An HTTP response from a server back to the client.
init(_ encodable: ResponseEncodable)
Creates a new AnyResponse
.