<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/ProxyConfiguration/init(httpCONNECTProxy:tlsOptions:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network18ProxyConfigurationV16httpCONNECTProxy10tlsOptionsAcA10NWEndpointO_AA13NWProtocolTLSC0G0CSgtcfc"
  },
  "title" : "init(httpCONNECTProxy:tlsOptions:)"
}
-->

# init(httpCONNECTProxy:tlsOptions:)

Initializes a legacy HTTP CONNECT configuration for a proxy server accessible using HTTP/1.1.

```
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:)`](/documentation/Network/ProxyConfiguration/init(relayHops:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)