-
Remote host of the request.
Declaration
Swift
public var host: String
-
Response HTTP status.
Declaration
Swift
public var status: HTTPResponseStatus
-
Response HTTP version.
Declaration
Swift
public var version: HTTPVersion
-
Reponse HTTP headers.
Declaration
Swift
public var headers: HTTPHeaders
-
Response body.
Declaration
Swift
public var body: ByteBuffer?
-
Create HTTP
Response
.Declaration
Swift
@available(*, deprecated, renamed: "init(host:status:version:headers:body:﹚") public init(host: String, status: HTTPResponseStatus, headers: HTTPHeaders, body: ByteBuffer?)
Parameters
host
Remote host of the request.
status
Response HTTP status.
headers
Reponse HTTP headers.
body
Response body.
-
Create HTTP
Response
.Declaration
Swift
public init(host: String, status: HTTPResponseStatus, version: HTTPVersion, headers: HTTPHeaders, body: ByteBuffer?)
Parameters
host
Remote host of the request.
status
Response HTTP status.
version
Response HTTP version.
headers
Reponse HTTP headers.
body
Response body.
-
List of HTTP cookies returned by the server.
Declaration
Swift
public var cookies: [HTTPClient.Cookie] { get }