ArcGISHttpClient class

The class is responsible for handling HTTP requests made by the Maps SDK.

It also provides functionalities for caching management.

Properties

cache HttpCache
The HTTP HttpCache used for this client.
no setter
customHeaders Map<String, dynamic>?
Custom headers to be sent with every request.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

download(Uri uri, Uri destinationFileUri, {Map<String, String>? data, RequestInfo? requestInfo, HttpOperation operation = HttpOperation.get}) Future<ResponseInfo>
Downloads a file from the given uri to the destinationFileUri. The data is passed in the body of the request as JSON. Use operation to specify the HTTP verb as HttpOperation.get (default) or HttpOperation.post.
get(Uri uri, {Map<String, String>? data, RequestInfo? requestInfo}) Future<ResponseInfo>
Makes a GET request to the given uri. The data is passed in the body of the request as JSON.
post(Uri uri, {Map<String, String>? data, List<FilePart>? fileParts, RequestInfo? requestInfo}) Future<ResponseInfo>
Makes a POST request to the given uri. The data is passed in the body of the request, using the content-type application/x-www-form-urlencoded.