---
title: url
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlrequest/url
---

# url

The URL of the request.

## Declaration

```swift
var url: URL? { get set }
```

## See Also

### Accessing request components

- [httpMethod](foundation/urlrequest/httpmethod.md)
- [httpBody](foundation/urlrequest/httpbody.md)
- [httpBodyStream](foundation/urlrequest/httpbodystream.md)
- [mainDocumentURL](foundation/urlrequest/maindocumenturl.md)
