vexana
library
Classes
BackgroundTransformer
The default Transformer for Dio .
BaseOptions
The base config for the Dio instance, used by Dio.options .
CancelToken
Controls cancellation of Dio 's requests.
Dio
Dio enables you to make HTTP requests easily.
DioMixin
EmptyModel
EmptyModel is a model class that is used to
general model or primitive type.
ErrorInterceptorHandler
The handler for interceptors to handle error occurred during the request.
ErrorModel <T extends INetworkModel <T > ? >
Error model for network response
FormData
A class to create readable "multipart/form-data" streams.
It can be used to submit forms and file uploads to http server.
The headers class for requests and responses.
HttpClientAdapter
HttpAdapter
is a bridge between Dio and HttpClient .
IErrorModel <T extends INetworkModel <T > ? >
Error model for network response
IFileManager
Interface for file manager
INetworkManager <E extends INetworkModel <E > >
The INetworkManager
interface is used to define the methods that are used
to send HTTP requests to a server. It extends the NetworkManagerParameters
INetworkModel <T >
Interface for network model
Interceptor
Interceptor helps to deal with RequestOptions , Response ,
and DioException during the lifecycle of a request
before it reaches users.
Interceptors
A Queue-Model list for Interceptor s.
InterceptorsWrapper
A helper class to create interceptors in ease.
IResponseModel <T , E extends INetworkModel <E > ? >
This response model is used to represent the response received from the
server. It contains a data
field which represents the data received
from the server, and an error
field which represents any errors that
occurred while receiving the data.
ListParam <T >
Indicates a param being used as queries or form data,
and how does it gets formatted.
LocalFile
Local file manager for a document folder
LocalPreferences
Manage cache with shared package
LogInterceptor
LogInterceptor is used to print logs during network requests.
It should be the last interceptor added,
otherwise modifications by following interceptors will not be logged.
This is because the execution of interceptors is in the order of addition.
MultipartFile
A file to be uploaded as part of a MultipartRequest
. This doesn't need to
correspond to a physical file.
NetworkManager <E extends INetworkModel <E > >
Network manager provide your requests with Dio
NoNetwork
NoNetwork model class
NoNetworkManager
No network manager
Options
Every request can pass an Options object which will be merged with Dio.options
QueuedInterceptor
Interceptor in queue.
QueuedInterceptorsWrapper
A helper class to create queued-interceptors in ease.
RedirectRecord
A record that records the redirection happens during requests,
including status code, request method, and the location.
RequestInterceptorHandler
The handler for interceptors to handle before the request has been sent.
RequestOptions
The internal request option class that is the eventual result after
BaseOptions and Options are composed.
Response <T >
The Response class contains the payload (could be transformed)
that respond from the request, and other information of the response.
ResponseBody
The response wrapper class for adapters.
ResponseInterceptorHandler
The handler for interceptors to handle after respond.
ResponseModel <T , E extends INetworkModel <E > ? >
Response model for network response general
SyncTransformer
If you want to custom the transformation of request/response data,
you can provide a Transformer by your self, and replace
the transformer by setting the Dio.transformer .
Transformer
Transformer allows changes to the request/response data before
it is sent/received to/from the server.
Enums
DioExceptionType
The exception enumeration indicates what type of exception
has happened during requests.
ListFormat
Specifies the array format (a single parameter with multiple parameter
or multiple parameters with the same name).
and the separator for array items.
RequestType
RequestType is enum class for NetworkManager request type.
ResponseType
Indicates which transformation should be applied to the response data.