<!--
{
  "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_relay_hop_t",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@T@nw_relay_hop_t"
  },
  "title" : "nw_relay_hop_t"
}
-->

# nw_relay_hop_t

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

```
typealias nw_relay_hop_t = any OS_nw_relay_hop
```

## Discussion

Relay servers are secure HTTP proxies that allow proxying TCP traffic using the `CONNECT` method and UDP traffic using the `connect-udp` protocol defined in [RFC 9298](https://www.rfc-editor.org/rfc/rfc9298.html).

## Topics

### Configuring Relay Hops

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

Creates a configuration for a secure relay accessible using HTTP/3, with an optional HTTP/2 fallback.

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

Adds an HTTP header name and value pair to send as part of `CONNECT` requests to the 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)