Create a HTTP proxy.
static func server(host: String, port: Int) -> Proxy
s15AsyncHTTPClient0B0C13ConfigurationV5ProxyV6server4host4portAGSS_SitFZ
6ZLAT
proxy server host.
proxy server port.
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.
HTTPClient
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct Int
A signed integer value type.
static func server(host: String, port: Int, authorization: HTTPClient.Authorization? = nil) -> 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 host: String
Specifies Proxy server host.
var port: Int
Specifies Proxy server port.