---
title: currentRequest
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlsessiontask/currentrequest
---

# currentRequest

The URL request object currently being handled by the task.

## Declaration

```swift
var currentRequest: URLRequest? { get }
```

## Discussion

Discussion This value is typically the same as the initial request (originalRequest) except when the server has responded to the initial request with a redirect to a different URL.

## See Also

### Obtaining general task information

- [originalRequest](foundation/urlsessiontask/originalrequest.md)
- [response](foundation/urlsessiontask/response.md)
- [taskDescription](foundation/urlsessiontask/taskdescription.md)
- [taskIdentifier](foundation/urlsessiontask/taskidentifier.md)
- [error](foundation/urlsessiontask/error.md)
