---
title: nw_privacy_context_t
framework: network
role: symbol
role_heading: Type Alias
path: network/nw_privacy_context_t
---

# nw_privacy_context_t

An object that defines the privacy requirements for a set of connections.

## Declaration

```swift
typealias nw_privacy_context_t = any OS_nw_privacy_context
```

## Discussion

Discussion Use NW_DEFAULT_PRIVACY_CONTEXT to specify the default shared privacy context that applies to all connections that do not use a custom context.

## Topics

### Configuring Custom Privacy Settings

- [nw_privacy_context_create(_:)](network/nw_privacy_context_create(_:).md)
- [nw_privacy_context_disable_logging(_:)](network/nw_privacy_context_disable_logging(_:).md)
- [nw_privacy_context_flush_cache(_:)](network/nw_privacy_context_flush_cache(_:).md)

### Requiring Encrypted DNS

- [nw_privacy_context_require_encrypted_name_resolution(_:_:_:)](network/nw_privacy_context_require_encrypted_name_resolution(_:_:_:).md)
- [nw_resolver_config_t](network/nw_resolver_config_t.md)
- [nw_resolver_config_create_https(_:)](network/nw_resolver_config_create_https(_:).md)
- [nw_resolver_config_create_tls(_:)](network/nw_resolver_config_create_tls(_:).md)
- [nw_resolver_config_add_server_address(_:_:)](network/nw_resolver_config_add_server_address(_:_:).md)

### Configuring Proxies

- [nw_privacy_context_add_proxy(_:_:)](network/nw_privacy_context_add_proxy(_:_:).md)
- [nw_privacy_context_clear_proxies(_:)](network/nw_privacy_context_clear_proxies(_:).md)
- [nw_proxy_config_t](network/nw_proxy_config_t.md)

## See Also

### Configuring Privacy Settings

- [nw_parameters_set_privacy_context(_:_:)](network/nw_parameters_set_privacy_context(_:_:).md)
