dio
library
Classes
-
CancelRequest
-
Annotation for cancelling the request.
When applied to a parameter, allows the method to accept a
CancelToken
that can be used to cancel the HTTP request.
-
DioOptions
-
Annotation for passing Dio options to individual requests.
-
DioResponseType
-
Annotation to specify the response type for Dio requests.
-
Extra data that will be passed to dio's request, response, transformer and interceptors.
-
Extra data that will be passed to dio's request, response, transformer and interceptors.
Simple Example:
-
HttpResponse<T>
-
Wrapper class that combines response data with the raw Dio response.
-
ReceiveProgress
-
Annotation for tracking download progress.
When applied to a parameter, allows the method to accept a callback
function that will be invoked with progress updates during data reception.
-
SendProgress
-
Annotation for tracking upload progress.
When applied to a parameter, allows the method to accept a callback
function that will be invoked with progress updates during data transmission.
-
Extra data that will be passed to Dio's request, response, transformer, and interceptors.
Extend TypedExtras and define fields that correspond to the keys passed into
extras.
The values of these fields will be derived from the data passed into your subclass.