HttpClient class

Constructors

HttpClient({BaseOptions? options, HttpConfig? dioConfig})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete<T>(String uri, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, HttpTransformer? httpTransformer, bool isShowLoading = true}) Future<HttpResponse<T>>
download(String urlPath, dynamic savePath, {ProgressCallback? onReceiveProgress, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = dio.Headers.contentLengthHeader, dynamic data, Options? options, HttpTransformer? httpTransformer}) Future<Response>
get<T>(String uri, {Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onReceiveProgress, HttpTransformer? httpTransformer, bool isShowLoading = true}) Future<HttpResponse<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch<T>(String uri, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, HttpTransformer? httpTransformer, bool isShowLoading = true}) Future<HttpResponse<T>>
post<T>(String uri, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, HttpTransformer? httpTransformer, bool isShowLoading = true}) Future<HttpResponse<T>>
put<T>(String uri, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, HttpTransformer? httpTransformer, bool isShowLoading = true}) Future<HttpResponse<T>>
showLoading(dynamic context, {String? text}) → void
toString() String
A string representation of this object.
inherited

Operators

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