ExtendedDioForBrowser class

Implemented types
Mixed-in types

Constructors

ExtendedDioForBrowser([BaseOptions? baseOptions])

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClientAdapter HttpClientAdapter
The adapter that the instance is using.
getter/setter pairinherited
interceptors Interceptors
Each Dio instance has a interceptor group by which you can intercept requests or responses before they are ended.
no setterinherited
options BaseOptions
The base request config for the instance.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformer Transformer
The default Transformer that transfers requests and responses into corresponding content to send. For response bodies greater than 50KB, a new Isolate will be spawned to decode the response body to JSON. Taken from https://github.com/flutter/flutter/blob/135454af32477f815a7525073027a3ff9eff1bfd/packages/flutter/lib/src/services/asset_bundle.dart#L87-L93 50 KB of data should take 2-3 ms to parse on a Moto G4, and about 400 μs on a Pixel 4.
getter/setter pairinherited

Methods

close({bool force = false}) → void
Shuts down the dio client.
inherited
delete<T>(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken}) Future<ExtendedResponse<T>>
delete
inherited
deleteUri<T>(Uri uri, {Object? data, Options? options, CancelToken? cancelToken}) Future<ExtendedResponse<T>>
deleteUri
inherited
download(String urlPath, dynamic savePath, {ProgressCallback? onReceiveProgress, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, Object? data, Options? options}) Future<ExtendedResponse>
download
inherited
downloadUri(Uri uri, dynamic savePath, {ProgressCallback? onReceiveProgress, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, Object? data, Options? options}) Future<ExtendedResponse>
downloadUri
inherited
fetch<T>(RequestOptions requestOptions) Future<ExtendedResponse<T>>
The eventual method to submit requests. All callers for requests should eventually go through this method.
inherited
get<T>(String path, {Map<String, dynamic>? queryParameters, Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
get
inherited
getUri<T>(Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
getUri
inherited
Convenience method to make an HTTP HEAD request.
inherited
headUri<T>(Uri uri, {Object? data, Options? options, CancelToken? cancelToken}) Future<ExtendedResponse<T>>
Convenience method to make an HTTP HEAD request with Uri.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch<T>(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
patch
inherited
patchUri<T>(Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
patchUri
inherited
post<T>(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
post
inherited
postUri<T>(Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
postUri
inherited
put<T>(String path, {Object? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
put
inherited
putUri<T>(Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
putUri
inherited
request<T>(String path, {Object? data, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
request
inherited
requestUri<T>(Uri uri, {Object? data, CancelToken? cancelToken, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<ExtendedResponse<T>>
requestUri
inherited
toString() String
A string representation of this object.
inherited

Operators

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