Instance Propertyasync-http-client 1.25.2AsyncHTTPClient
host
Specifies Proxy server host.
var host: String
Specifies Proxy server host.
var host: String
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
struct Proxy
Proxy server configuration Specifies the remote address of an HTTP proxy.
class HTTPClient
HTTPClient class provides API for request execution.
struct Configuration
HTTPClient
configuration.
@frozen struct String
A Unicode string value that is a collection of characters.
static func server(host: String, port: Int) -> Proxy
Create a HTTP proxy.
static func server(host: String, port: Int, authorization: HTTPClient.Authorization? = nil) -> Proxy
Create a HTTP proxy.
static func socksServer(host: String, port: Int = 1080) -> Proxy
Create a SOCKSv5 proxy.
var authorization: HTTPClient.Authorization? { get set }
Specifies Proxy server authorization.
var port: Int
Specifies Proxy server port.