Instance Methodvapor 4.114.1Vapor
encodeResponse(for:)
View.swift:10func encodeResponse(for request: Request) -> EventLoopFuture<Response> func encodeResponse(for request: Request) -> EventLoopFuture<Response> s5Vapor4ViewV14encodeResponse3for7NIOCore15EventLoopFutureCyAA0D0CGAA7RequestC_tF What are these?ISXHimport VaporVapor 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 Viewfinal class RequestRepresents an HTTP request in an application.
final class EventLoopFuture<Value>Holder for a result that will be provided later.
final class ResponseAn HTTP response from a server back to the client.
init(data: ByteBuffer) var data: ByteBufferfunc encodeResponse(for request: Request) async throws -> Response