A task specification for HTTP requests.
This specification is not available when an HTTP request is sent through direct use of HttpRequest.send. See HttpRequestSendTaskSpecification.
A task created from this specification is a Future<HttpRequest>
.
Experimental. This class may disappear without notice.
- Inheritance
- Object
- TaskSpecification
- HttpRequestTaskSpecification
Constructors
- HttpRequestTaskSpecification(String url, {String method, bool withCredentials, String responseType, String mimeType, Map<String, String> requestHeaders, sendData, void onProgress(ProgressEvent e)})
Properties
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - isOneShot → bool
-
read-only
- method → String
-
The HTTP request method.
read-only - mimeType → String
-
The desired MIME type.
read-only - name → String
-
read-only
- onProgress → ZoneUnaryCallback
-
The function that is invoked on progress updates. This function is registered as an event listener on the created HttpRequest object, and thus has its own task. Further invocations of the progress function do not use the HTTP request task as task object.
read-only - requestHeaders → Map<String, String>
-
The request headers that should be sent with the request.
read-only - responseType → String
-
The desired response format.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - sendData → dynamic
-
The data that is sent with the request.
read-only - url → String
-
The URL of the request.
read-only - withCredentials → bool
-
Whether the request should send credentials. Credentials are only useful for cross-origin requests.
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