<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_proxy_config_create_oblivious_http(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@F@nw_proxy_config_create_oblivious_http"
  },
  "title" : "nw_proxy_config_create_oblivious_http(_:_:_:_:)"
}
-->

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

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

```
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 [key configuration](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

An initialized proxy configuration object.

## Discussion

[Oblivious HTTP](https://www.ietf.org/archive/id/draft-ietf-ohai-ohttp-08.html) provides per-message encryption to a gateway through a relay.

---

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)