---
title: "init(httpCONNECTProxy:tlsOptions:)"
framework: network
role: symbol
role_heading: Initializer
path: "network/proxyconfiguration/init(httpconnectproxy:tlsoptions:)"
---

# init(httpCONNECTProxy:tlsOptions:)

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

## Declaration

```swift
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

Discussion These HTTP CONNECT proxies only handle TCP connections. To support UDP proxying, use init(relayHops:).

## See Also

### Creating Proxy Configurations

- [init(relayHops:)](network/proxyconfiguration/init(relayhops:).md)
- [ProxyConfiguration.RelayHop](network/proxyconfiguration/relayhop.md)
- [init(socksv5Proxy:)](network/proxyconfiguration/init(socksv5proxy:).md)
