Skip to content

APIGateway_V2_Response

pokryfka edited this page Oct 1, 2020 · 2 revisions

APIGateway.V2.Response

public struct Response: Codable

Inheritance

Codable

Initializers

init(statusCode:headers:multiValueHeaders:body:isBase64Encoded:cookies:)

public init(statusCode: HTTPResponseStatus, headers: HTTPHeaders? = nil, multiValueHeaders: HTTPMultiValueHeaders? = nil, body: String? = nil, isBase64Encoded: Bool? = nil, cookies: [String]? = nil)

Properties

statusCode

let statusCode: HTTPResponseStatus

headers

let headers: HTTPHeaders?

multiValueHeaders

let multiValueHeaders: HTTPMultiValueHeaders?

body

let body: String?

isBase64Encoded

let isBase64Encoded: Bool?

cookies

let cookies: [String]?