Instance Propertyasync-http-client 1.25.2AsyncHTTPClient
method
The request method.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
var method: HTTPMethod
The request method.
var method: HTTPMethod
s15AsyncHTTPClient0B7RequestV6method8NIOHTTP110HTTPMethodOvp
What are these?6H5KH
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
struct HTTPClientRequest
A representation of an HTTP request for the Swift Concurrency HTTPClient API.
enum HTTPMethod
init(url: String)
var body: Body?
The request body, if any.
var headers: HTTPHeaders
The request headers.
var tlsConfiguration: TLSConfiguration?
Request-specific TLS configuration, defaults to no request-specific TLS configuration.
var url: String
The request URL, including scheme, hostname, and optionally port.
mutating func setBasicAuth(username: String, password: String)
Set basic auth for a request.
struct Body
An HTTP request body.