Instance Method (Default implementation)vapor 4.106.3Vapor
encodeResponse(for:)
Content.swift:77func encodeResponse(for request: Request) -> EventLoopFuture<Response>
Implements
func encodeResponse(for: Request
) -> EventLoopFuture<Response> Encodes an instance of
Self
to aResponse
.func encodeResponse(for: Request
) async throws -> Response Encodes an instance of
Self
to aResponse
.
Other members in extension
Type members
static var defaultContentType: HTTPMediaType
static func decodeRequest(Request
) -> EventLoopFuture<Self> static func decodeRequest(Request
) async throws -> Self