---
title: request
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlprotocol/request
---

# request

The protocol’s request.

## Declaration

```swift
var request: URLRequest { get }
```

## See Also

### Getting protocol attributes

- [cachedResponse](foundation/urlprotocol/cachedresponse.md)
- [client](foundation/urlprotocol/client.md)
- [URLProtocolClient](foundation/urlprotocolclient.md)
- [task](foundation/urlprotocol/task.md)
