Instance Methodvapor 4.106.2Vapor->NIOHTTP1
encode(to:)
HTTPStatus.swift:21func encode(to encoder: Encoder) throws
func encode(to encoder: Encoder) throws
s8NIOHTTP118HTTPResponseStatusO5VaporE6encode2toys7Encoder_p_tKF
What are these?
FNV24: [3A9TN]
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.
import NIOHTTP1
enum HTTPResponseStatus
A HTTP response status code.
protocol Encoder
A type that can encode values into a native format for external representation.
init(from decoder: Decoder) throws
func encodeResponse(for request: Request) -> EventLoopFuture<Response>
See ResponseEncodable
.
func encodeResponse(for request: Request) async throws -> Response