Instance Propertyasync-http-client 1.25.2AsyncHTTPClient
port
Specifies Proxy server port.
var port: Int
Specifies Proxy server port.
var port: Int
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 Int
A signed integer value type.
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 host: String
Specifies Proxy server host.