HttpClientAPI class

Constructors

HttpClientAPI()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

getAPIRequestBaseUr() String
get global config: Request baseUrl
getAPIRequestTimeout() int
get global config, Unit 's': Request connect timeout
request({URLMethod urlMethod, String urlPath, APISuccessResponseHandler success, APIFailureResponseHandler failure, String baseUrl, Map<String, dynamic> parames, Map<String, dynamic> header, APIWillRequestHandler willRequest}) → dynamic
Start Request Use HttpClient required urlMethod to Request with type. required urlPath to Request url's path. required success to Response success results data. required failure to Response failure results data. [...]
setAPIRequestBaseUrl(String baseUrl) → dynamic
set global config: Request baseUrl
setAPIRequestTimeout({int timeout}) → dynamic
set global config, Unit 's': Request connect timeout,default: '35's
upLoadFile({String urlPath, File file, APISuccessResponseHandler success, APIFailureResponseHandler failure, String baseUrl, String accept, String token, APIWillUpLoaderHandler willFile}) → dynamic
Start upLoadFile Use HttpClient upLoadFile urlPath to UpLoad url's path. upLoadFile file to UpLoad File. upLoadFile success to UpLoad success results data. upLoadFile failure to UpLoad failure results data. [...]
upLoadFileList({String urlPath, List<File> fileList, APISuccessResponseHandler success, APIFailureResponseHandler failure, String baseUrl, String accept, String token, APIWillUpLoaderListHandler willFileList}) → dynamic
Start upLoadFile Use HttpClient upLoadFile urlPath to UpLoad url's path. upLoadFile fileList to UpLoad File Array. upLoadFile success to UpLoad success results data. upLoadFile failure to UpLoad failure results data. [...]
upLoadImage({String urlPath, ImageProvider<Object> imageProvider, APISuccessResponseHandler success, APIFailureResponseHandler failure, String baseUrl, String accept, String token}) → dynamic
Start upLoadImage Use HttpClient upLoadImage urlPath to UpLoad url's path. upLoadImage imageProvider to UpLoad image data source. upLoadImage success to UpLoad success results data. upLoadImage failure to UpLoad failure results data. [...]
upLoadImageList({String urlPath, List<ImageProvider<Object>> imageProviderList, APISuccessResponseHandler success, APIFailureResponseHandler failure, String baseUrl, String accept, String token}) → dynamic
Start upLoadImageList Use HttpClient upLoadImage urlPath to UpLoad url's path. upLoadImage imageProviderList to UpLoad image data source by array. upLoadImage success to UpLoad success results data. upLoadImage failure to UpLoad failure results data. [...]