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

# nw_proxy_config_create_oblivious_http(_:_:_:_:)

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

## Declaration

```swift
func nw_proxy_config_create_oblivious_http(_ relay: nw_relay_hop_t, _ relay_resource_path: UnsafePointer<CChar>, _ gateway_key_config: UnsafePointer<UInt8>, _ gateway_key_config_length: Int) -> nw_proxy_config_t
```

## Parameters

- `relay`: The Oblivious HTTP relay hop.
- `relay_resource_path`: The HTTP path to use for requests to the Oblivious HTTP relay that will forward requests to the gateway.
- `gateway_key_config`: The https://www.ietf.org/archive/id/draft-ietf-ohai-ohttp-08.html#name-key-configuration-encoding for the Oblivious HTTP gateway.
- `gateway_key_config_length`: The length of the key configuration buffer in gateway_key_config.

## Return Value

Return Value An initialized proxy configuration object.

## Discussion

Discussion Oblivious HTTP provides per-message encryption to a gateway through a relay.

## 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_http_connect(_:_:)](network/nw_proxy_config_create_http_connect(_:_:).md)
- [nw_proxy_config_create_socksv5(_:)](network/nw_proxy_config_create_socksv5(_:).md)
