A cancelable object that refers to the lifetime of processing a given request.
The root class of most Foundation class hierarchies.
Citizens in FoundationNetworking
A type with a customized textual representation suitable for debugging purposes.
A type with a customized textual representation.
A type that can be compared for value equality.
A type that can be hashed into a
Hasherto produce an integer hash value.
NSCopyingprotocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
NSObjectProtocolgroups methods that are fundamental to all Foundation objects.
If your class supports reporting progress, then you can adopt the ProgressReporting protocol.
static let defaultPriority: Float
The default URL session task priority, used implicitly for any task you have not prioritized. The floating point value of this constant is 0.5.
static let highPriority: Float
A high URL session task priority, with a floating point value above the default value and below the maximum of 1.0.
static let lowPriority: Float
A low URL session task priority, with a floating point value above the minimum of 0 and below the default value.
var countOfBytesClientExpectsToReceive: Int64
var countOfBytesClientExpectsToSend: Int64
var countOfBytesExpectedToReceive: Int64
Number of bytes we expect to receive, usually derived from the Content-Length header of an HTTP response. */
var countOfBytesExpectedToSend: Int64
Number of body bytes we expect to send, derived from the Content-Length of the HTTP request */
var countOfBytesReceived: Int64
Number of body bytes already received
var countOfBytesSent: Int64
Number of body bytes already sent */
var currentRequest: URLRequest?
var error: Error?
var originalRequest: URLRequest?
var priority: Float
The priority of the task.
var progress: Progress
var response: URLResponse?
var state: URLSessionTask.State
var taskDescription: String?
The taskDescription property is available for the developer to provide a descriptive label for the task.
var taskIdentifier: Int
An identifier for this task, assigned by and unique to the owning session
) -> Any
func copy(with: NSZone?
) -> Any
Resume the task.
Suspend the task.
var earliestBeginDate: Date?