IOHttpClientAdapter class
The default HttpClientAdapter for native platforms.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onHttpClientCreate ↔ OnHttpClientCreate?
-
Dio will create HttpClient when it is needed.
If onHttpClientCreate is provided, Dio will call
it when a HttpClient created.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validateCertificate ↔ ValidateCertificate?
-
Allows the user to decide if the response certificate is good.
If this function is missing, then the certificate is allowed.
This method is called only if both the SecurityContext and
badCertificateCallback
accept the certificate chain. Those methods evaluate the root or intermediate certificate, while validateCertificate evaluates the leaf certificate.getter/setter pair
Methods
-
close(
{bool force = false}) → void -
override
-
fetch(
RequestOptions options, Stream< Uint8List> ? requestStream, Future<void> ? cancelFuture) → Future<ResponseBody> -
We should implement this method to make real http requests.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited