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