---
title: "nw_proxy_config_create_http_connect(_:_:)"
framework: network
role: symbol
role_heading: Function
path: "network/nw_proxy_config_create_http_connect(_:_:)"
---

# nw_proxy_config_create_http_connect(_:_:)

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

## Declaration

```swift
func nw_proxy_config_create_http_connect(_ proxy_endpoint: nw_endpoint_t, _ proxy_tls_options: nw_protocol_options_t?) -> nw_proxy_config_t
```

## Parameters

- `proxy_endpoint`: A host endpoint identifying the proxy server accessible using HTTP/1.1.
- `proxy_tls_options`: 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.

## Return Value

Return Value An initialized proxy configuration object.

## See Also

### Creating Proxy Configurations

- [nw_proxy_config_create_relay(_:_:)](network/nw_proxy_config_create_relay(_:_:).md)
- [nw_relay_hop_t](network/nw_relay_hop_t.md)
- [nw_proxy_config_create_oblivious_http(_:_:_:_:)](network/nw_proxy_config_create_oblivious_http(_:_:_:_:).md)
- [nw_proxy_config_create_socksv5(_:)](network/nw_proxy_config_create_socksv5(_:).md)
