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