Instance Methodvapor 4.114.1Vapor->NIOHTTP1
encodeResponse(for:)
ResponseCodable+Concurrency.swift:121func encodeResponse(for request: Request) async throws -> Response
func encodeResponse(for request: Request) async throws -> Response
s8NIOHTTP118HTTPResponseStatusO5VaporE14encodeResponse3forAD0F0CAD7RequestC_tYaKF
What are these?4Y346
import NIOHTTP1
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.
enum HTTPResponseStatus
A HTTP response status code.
final class Request
Represents an HTTP request in an application.
final class Response
An HTTP response from a server back to the client.
init(from decoder: Decoder) throws
func encode(to encoder: Encoder) throws
func encodeResponse(for request: Request) -> EventLoopFuture<Response>
See ResponseEncodable
.