Instance Property


The URL request object currently being handled by the task.


var currentRequest: URLRequest? { get }


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

var originalRequest: URLRequest?

The original request object passed when the task was created.

var response: URLResponse?

The server’s response to the currently active request.

var taskDescription: String?

An app-provided string value for the current task.

var taskIdentifier: Int

An identifier uniquely identifying the task within a given session.

var error: Error?

An error object that indicates why the task failed.