-
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
hostRemote host of the request.
statusResponse HTTP status.
headersReponse HTTP headers.
bodyResponse body.
-
Create HTTP
Response.Declaration
Swift
public init(host: String, status: HTTPResponseStatus, version: HTTPVersion, headers: HTTPHeaders, body: ByteBuffer?)Parameters
hostRemote host of the request.
statusResponse HTTP status.
versionResponse HTTP version.
headersReponse HTTP headers.
bodyResponse body.
-
List of HTTP cookies returned by the server.
Declaration
Swift
public var cookies: [HTTPClient.Cookie] { get }
View on GitHub
Install in Dash
Response Structure Reference