HttpUtils class

Available extensions

Constructors

HttpUtils.new()
factory

Properties

dio → Dio?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeHttpClient() → void
Close current connection, use with caution!!! if use, Certificate needs to be reset. setupCertificate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(String path, {bool showLoading = false, DioMethod method = DioMethod.get, Map<String, dynamic>? params, dynamic data, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<Response>
setHttpsCertificateVerification({String? pem, bool enable = false}) → void

Available on HttpUtils, provided by the AFConfiguration extension

setProxy({required String ip, String port = '8888', bool enable = false}) → void

Available on HttpUtils, provided by the AFConfiguration extension

proxy all request to localhost:8888
setupCertificate({String? certFilePath, String? password}) → void
toString() String
A string representation of this object.
inherited
upload(String path, String filePath, {String? filename, ProgressCallback? onSendProgress, Options? options, CancelToken? cancelToken}) Future<Response>

Available on HttpUtils, provided by the AF extension

Operators

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

Static Properties

instance HttpUtils
no setter

Constants

baseUrl → const String
connectTimeout → const int
receiveTimeout → const int