CommonHttp class

Constructors

CommonHttp()

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

delete(String url, {dynamic jsonData, Options options, CancelToken cancelToken}) → Future<Result>
download(String urlPath, String savePath, {ProgressCallback onProgress, dynamic data, Options options, CancelToken cancelToken}) → Future<void>
formatErrorMessage(DioErrorType type) → String
formDelete(String url, {Map<String, dynamic> formParams}) → Future<Result>
formPost(String url, {Map<String, dynamic> formParams}) → Future<Result>
formPostResponse(String url, {Map<String, dynamic> formParams, Map<String, String> headers}) → Future<Response>
formPut(String url, {Map<String, dynamic> formParams}) → Future<Result>
formUpload(String url, {Map<String, dynamic> formParams, Function onProgress}) → Future<Result>
get(String url, {dynamic params, dynamic options, CancelToken cancelToken}) → Future<Result>
getResponse(String url, {dynamic params, dynamic options, CancelToken cancelToken}) → Future<Response>
post(String url, {dynamic jsonData, Options options, CancelToken cancelToken}) → Future<Result>
postResponse(String url, {dynamic jsonData, Options options, CancelToken cancelToken}) → Future<Response>
put(String url, {dynamic jsonData, Options options, CancelToken cancelToken}) → Future<Result>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Properties

dio Dio
read / write
instance CommonHttp
read-only