Instance Propertyasync-http-client 1.23.0AsyncHTTPClient
body
Request body, defaults to no body.
HTTPHandler.swift:176var body: Body?
Other members in extension
Type members
init(url: URL, method: HTTPMethod, headers: HTTPHeaders, body: Body?
) throws Create an HTTP
Request
.init(url: String, method: HTTPMethod, headers: HTTPHeaders, body: Body?
) throws Create HTTP request.
init(url: URL, method: HTTPMethod, headers: HTTPHeaders, body: Body?, tlsConfiguration: TLSConfiguration?
) throws Create an HTTP
Request
.init(url: String, method: HTTPMethod, headers: HTTPHeaders, body: Body?, tlsConfiguration: TLSConfiguration?
) throws Create HTTP request.
Instance members
var headers: HTTPHeaders
Request custom HTTP Headers, defaults to no headers.
var host: String
Remote host, resolved from
URL
.let method: HTTPMethod
Request HTTP method, defaults to
GET
.var port: Int
Resolved port.
var scheme: String
Remote HTTP scheme, resolved from
URL
.var tlsConfiguration: TLSConfiguration?
Request-specific TLS configuration, defaults to no request-specific TLS configuration.
let url: URL
Remote URL.
var useTLS: Bool
Whether request will be executed using secure socket.