---
title: response
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlsessiontasktransactionmetrics/response
---

# response

The transaction response.

## Declaration

```swift
@NSCopying var response: URLResponse? { get }
```

## Discussion

Discussion This property is nil if an error occurred and no response was generated.

## See Also

### Accessing request and response

- [request](foundation/urlsessiontasktransactionmetrics/request.md)
