Instance Method
encodeResponse(for:)
Encodes an instance of
Self to a Response.Return Value
A Response.
Default Implementations
AsyncResponseEncodable Implementations
func encodeResponse(for: Request) -> EventLoopFuture<Response>Encodes an instance ofSelfto aResponse.func encodeResponse(for: Request) async throws -> ResponseEncodes an instance ofSelfto aResponse.