---
title: ProxyConfiguration
framework: network
role: symbol
role_heading: Structure
path: network/proxyconfiguration
---

# ProxyConfiguration

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

## Declaration

```swift
struct ProxyConfiguration
```

## Topics

### Creating Proxy Configurations

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

### Customizing Proxy Behavior

- [allowFailover](network/proxyconfiguration/allowfailover.md)
- [applyCredential(username:password:)](network/proxyconfiguration/applycredential(username:password:).md)

### Initializers

- [init(obliviousHTTPRelay:relayResourcePath:gatewayKeyConfig:matchDomains:)](network/proxyconfiguration/init(oblivioushttprelay:relayresourcepath:gatewaykeyconfig:matchdomains:).md)

### Instance Properties

- [excludedDomains](network/proxyconfiguration/excludeddomains.md)
- [matchDomains](network/proxyconfiguration/matchdomains.md)

## Relationships

### Conforms To

- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring Proxies

- [proxyConfigurations](network/nwparameters/privacycontext/proxyconfigurations.md)
