ai_http library

Classes

AiHttp
AiHttp
ContentType
Content type.
HttpBuilder
Http builder singletongetInstance baseUrlHttpBuilder.buildBaseUrl
HttpContext
Http context:网络框架封装 1、Method: Http Get method:HttpContext.get Http Post method:HttpContext.post Http Delete method:HttpContext.delete 2、...:
HttpHeaders
Http headers
HttpInterceptor
Http interceptor
HttpManager
HttpManager
HttpMediaType
HttpMediaType
HttpMultipartRequest
This request automatically sets the Content-Type header to multipart/form-data. This value will override any value set by the user. [...]
MultipartBody
MultipartBody
RequestInterceptor
RequestInterceptor
RequestOption
RequestOption
RequestRule
RequestRule:请求体(RequestMethod:GET、POST、DELETE)
Response
An HTTP response where the entire response body is known in advance.
ResponseCallback
ResponseCallback:响应回调对象(用于接收响应数据)
ResponseInterceptor
ResponseInterceptor
ResponseInterceptorModel
ResponseInterceptorModel
ResponseModel
ResponseModel:响应体(响应的数据实体)

Functions

delete(dynamic url, {Map<String, String> headers}) Future<Response>
Delete
get(dynamic url, {Map<String, String> headers}) Future<Response>
Get
HttpCore [...]
patch(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding}) Future<Response>
Patch
post(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding}) Future<Response>
Post
postUploadFiles(dynamic url, {Map<String, String> headers, Map<String, String> fields, List<MultipartBody> body}) Future<Response>
UpLoadFiles by Post
put(dynamic url, {Map<String, String> headers, dynamic body, Encoding encoding}) Future<Response>
Put
read(dynamic url, {Map<String, String> headers}) Future<String>
Read
readBytes(dynamic url, {Map<String, String> headers}) Future<Uint8List>
ReadBytes

Typedefs

Callback(ResponseModel responseModel) → void