WdDio class
Wrapped http client
Properties
- debug → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClientAdapter ↔ HttpClientAdapter
-
The adapter that the instance is using.
getter/setter pairinherited
-
interceptorList
→ List<
Interceptor> ? -
final
- 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.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<Response< T> > -
Convenience method to make an HTTP DELETE request.
inherited
-
deleteUri<
T> (Uri uri, {Object? data, Options? options, CancelToken? cancelToken}) → Future< Response< T> > -
Convenience method to make an HTTP DELETE request with Uri.
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<Response> -
Download the file and save it in local. The default http method is "GET",
you can custom it by
Options.method
.inherited -
downloadUri(
Uri uri, dynamic savePath, {ProgressCallback? onReceiveProgress, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, Object? data, Options? options}) → Future< Response> -
Download the file and save it in local. The default http method is "GET",
you can custom it by
Options.method
.inherited -
fetch<
T> (RequestOptions requestOptions) → Future< Response< 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<Response< T> > -
Convenience method to make an HTTP GET request.
inherited
-
getUri<
T> (Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onReceiveProgress}) → Future< Response< T> > -
Convenience method to make an HTTP GET request with Uri.
inherited
-
head<
T> (String path, {Object? data, Map< String, dynamic> ? queryParameters, Options? options, CancelToken? cancelToken}) → Future<Response< T> > -
Convenience method to make an HTTP HEAD request.
inherited
-
headUri<
T> (Uri uri, {Object? data, Options? options, CancelToken? cancelToken}) → Future< Response< 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<Response< T> > -
Convenience method to make an HTTP PATCH request.
inherited
-
patchUri<
T> (Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future< Response< T> > -
Convenience method to make an HTTP PATCH request with Uri.
inherited
-
post<
T> (String path, {Object? data, Map< String, dynamic> ? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response< T> > -
Convenience method to make an HTTP POST request.
inherited
-
postUri<
T> (Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future< Response< T> > -
Convenience method to make an HTTP POST request with Uri.
inherited
-
put<
T> (String path, {Object? data, Map< String, dynamic> ? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response< T> > -
Convenience method to make an HTTP PUT request.
inherited
-
putUri<
T> (Uri uri, {Object? data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future< Response< T> > -
Convenience method to make an HTTP PUT request with Uri.
inherited
-
req<
T> (Client self, String method, String path, {dynamic data, dynamic optionsHandler(Options)?, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) → Future< Response< T> > -
request<
T> (String path, {Object? data, Map< String, dynamic> ? queryParameters, CancelToken? cancelToken, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<Response< T> > -
Make HTTP request with options.
inherited
-
requestUri<
T> (Uri uri, {Object? data, CancelToken? cancelToken, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future< Response< T> > -
Make http request with options with Uri.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
wdCopyMove(
Client self, String oldPath, String newPath, bool isCopy, bool overwrite, {CancelToken? cancelToken}) → Future< void> - COPY OR MOVE
-
wdDelete(
Client self, String path, {CancelToken? cancelToken}) → Future< Response> - DELETE
-
wdMkcol(
Client self, String path, {CancelToken? cancelToken}) → Future< Response> - MKCOL
-
wdOptions(
Client self, String path, {CancelToken? cancelToken}) → Future< Response> -
wdPropfind(
Client self, String path, bool depth, String dataStr, {CancelToken? cancelToken}) → Future< Response> -
wdReadWithBytes(
Client self, String path, {void onProgress(int count, int total)?, CancelToken? cancelToken}) → Future< List< int> > - read a file with bytes
-
wdReadWithStream(
Client self, String path, String savePath, {void onProgress(int count, int total)?, CancelToken? cancelToken}) → Future< void> - read a file with stream
-
wdWriteWithBytes(
Client self, String path, Uint8List data, {void onProgress(int count, int total)?, CancelToken? cancelToken}) → Future< void> - write a file with bytes
-
wdWriteWithStream(
Client self, String path, Stream< List< data, int length, {void onProgress(int count, int total)?, CancelToken? cancelToken}) → Future<int> >void> - write a file with stream
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited