okdio library

Classes

AnT
Body
Declare Body of POST, PUT, PATCH request [...]
ChopperApi
Define an APi baseUrl determine the prefix of every request in this api name generate class name
ChopperClient
Root object of chopper Used to manager services, encode data, intercept request, response and error.
ChopperError
ChopperService
Used by generator to generate apis
Converter
CurlInterceptor
Interceptor that print a curl request thanks @edwardaux
Delete
Define a method as an Http DELETE request
DioOptions
FactoryConverter
Field
Define fields witll be convert to { 'key': value } [...]
FileField
Use to define a file filed for Multipart request @Post(path: 'file') @multipart Future postFile(@FileField('file') List bytes);
FormUrlEncodedConverter
Get
Define a method as an Http GET request
Override header using method parameter [...]
HeadersInterceptor
HttpLoggingInterceptor
HttpMethod
JsonConverter
Method
Multipart
define a multipart request [...]
MyResponse<Body>
Part
Use to define part of Multipart request
PartFile<T>
PartValue<T>
Patch
Define a method as an Http PATCH request use Body annotation to determine data to send
Path
Define path parameter of an url [...]
Post
Define a method as an Http POST request use Body annotation to determine data to send
Put
Define a method as an Http PUT request use Body annotation to determine data to send
Query
Define query parameters of a request [...]
Request
RequestInterceptor
ResponseInterceptor

Constants

body → const Body
const Body()
contentTypeKey → const String
'content-type'
formEncodedHeaders → const String
"application/x-www-form-urlencoded"
jsonHeaders → const String
"application/json"
multipart → const Multipart
const Multipart()

Properties

chopperLogger Logger
final

Functions

applyHeader(Request request, String name, String value) Request
applyHeaders(Request request, Map<String, String> headers) Request

Typedefs

ConvertRequest(Request request) Request
ConvertResponse<T>(MyResponse response) MyResponse
ErrorConverter(dynamic error) ChopperError
RequestInterceptorFunc(Request request) FutureOr<Request>
ResponseInterceptorFunc<Value>(MyResponse<Value> response) FutureOr<MyResponse>
SendProgressFunc(int send, int total) → void