Instance Property


The server’s response to the currently active request.


@NSCopying var response: URLResponse? { get }


This object provides information about the request as provided by the server. This information always includes the original URL. It may also include an expected length, MIME type information, encoding information, a suggested filename, or a combination of these.

See Also

Obtaining General Task Information

var currentRequest: URLRequest?

The URL request object currently being handled by the task.

var originalRequest: URLRequest?

The original request object passed when the task was created.

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.