init(httpCONNECTProxy:tlsOptions:)
Initializes a legacy HTTP CONNECT configuration for a proxy server accessible using HTTP/1.1.
Declaration
init(httpCONNECTProxy: NWEndpoint, tlsOptions: NWProtocolTLS.Options? = nil)Parameters
- httpCONNECTProxy:
A host endpoint identifying the proxy server accessible using HTTP/1.1.
- tlsOptions:
Optional TLS options to use for a TLS handshake to the relay. If no TLS options are provided, the proxy will be accessed using cleartext HTTP.
Discussion
These HTTP CONNECT proxies only handle TCP connections. To support UDP proxying, use init(relayHops:).