<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_proxy_config_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_proxy_config_t"
  },
  "title" : "nw_proxy_config_t"
}
-->

# nw_proxy_config_t

A proxy configuration for Relays, Oblivious HTTP, HTTP CONNECT, or SOCKSv5.

```
typealias nw_proxy_config_t = any OS_nw_proxy_config
```

## Topics

### Creating Proxy Configurations

[`nw_proxy_config_create_relay(_:_:)`](/documentation/Network/nw_proxy_config_create_relay(_:_:))

Initializes a proxy configuration with one or two relay hops.

[`nw_relay_hop_t`](/documentation/Network/nw_relay_hop_t)

A single relay server you can chain together with other servers.

[`nw_proxy_config_create_oblivious_http(_:_:_:_:)`](/documentation/Network/nw_proxy_config_create_oblivious_http(_:_:_:_:))

Initializes an Oblivious HTTP proxy configuration using a relay and a gateway.

[`nw_proxy_config_create_http_connect(_:_:)`](/documentation/Network/nw_proxy_config_create_http_connect(_:_:))

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

[`nw_proxy_config_create_socksv5(_:)`](/documentation/Network/nw_proxy_config_create_socksv5(_:))

Initializes a SOCKSv5 proxy configuration.

### Customizing Proxy Behavior

[`nw_proxy_config_set_failover_allowed(_:_:)`](/documentation/Network/nw_proxy_config_set_failover_allowed(_:_:))

Configures whether or not a proxy configuration allows failover to non-proxied connections. Failover isn’t allowed by default.

[`nw_proxy_config_set_username_and_password(_:_:_:)`](/documentation/Network/nw_proxy_config_set_username_and_password(_:_:_:))

Sets a username and password to use as authentication for a proxy configuration.

### Inspecting Proxies

[`nw_proxy_config_get_failover_allowed(_:)`](/documentation/Network/nw_proxy_config_get_failover_allowed(_:))

Checks if a proxy configuration allows failover to non-proxied connections.



---

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)