A task specification for HTTP requests that are initiated through a direct invocation of HttpRequest.send.
This specification serves as signal to zones that an HTTP request has been initiated. The created task is the request object itself, and no callback is ever executed in this task.
Note that event listeners on the HTTP request are also registered in the zone (although with their own task creations), and that a zone can thus detect when the HTTP request returns.
HTTP requests that are initiated through request
methods don't use
this class but use HttpRequestTaskSpecification.
Experimental. This class may disappear without notice.
- Inheritance
- Object
- TaskSpecification
- HttpRequestSendTaskSpecification
Constructors
- HttpRequestSendTaskSpecification(HttpRequest request, sendData)
Properties
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - isOneShot → bool
-
No callback is ever executed in an HTTP request send task.
read-only - name → String
-
read-only
- request → HttpRequest
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - sendData → dynamic
-
read-only
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited