---
title: "NWEndpoint.url(_:)"
framework: network
role: symbol
role_heading: Case
path: "network/nwendpoint/url(_:)"
---

# NWEndpoint.url(_:)

An endpoint represented as a URL, with host and port values inferred from the URL.

## Declaration

```swift
case url(URL)
```

## See Also

### Endpoint Types

- [NWEndpoint.hostPort(host:port:)](network/nwendpoint/hostport(host:port:).md)
- [NWEndpoint.service(name:type:domain:interface:)](network/nwendpoint/service(name:type:domain:interface:).md)
- [NWEndpoint.unix(path:)](network/nwendpoint/unix(path:).md)
