URLSessionTask class
A task associated with downloading a URI.
See NSURLSessionTask
- Implementers
Properties
- countOfBytesExpectedToReceive → int
-
The number of content bytes that are expected to be received from the
server.
no setter
- countOfBytesExpectedToSend → int
-
The number of content bytes that the task expects to send to the server.
no setter
- countOfBytesReceived → int
-
The number of content bytes that have been received from the server.
no setter
- countOfBytesSent → int
-
Whether the body of the response should be delivered incrementally or not.
no setter
- currentRequest → URLRequest?
-
The request currently being handled by the task.
no setter
- error → NSError?
-
An error indicating why the task failed or
null
on success.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- originalRequest → URLRequest?
-
The original request associated with the task.
no setter
- prefersIncrementalDelivery ↔ bool
-
Whether the body of the response should be delivered incrementally or not.
getter/setter pair
- priority ↔ double
-
The relative priority
0, 1
that the host should use to handle the request.getter/setter pair - response → URLResponse?
-
The server response to the request associated with this task.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → NSURLSessionTaskState
-
The current state of the task.
no setter
- taskDescription ↔ String
-
The user-assigned description for the task.
getter/setter pair
- taskIdentifier → int
-
A unique ID for the URLSessionTask in a URLSession.
no setter
Methods
-
cancel(
) → void - Cancels the task.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resume(
) → void - Resumes a suspended task (new tasks start as suspended).
-
suspend(
) → void - Suspends a task (prevents it from transferring data).
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited