DefaultHttp2Adapter class

The default HttpClientAdapter for mobile platforms. This adapter will use the "dio_http2_adapter" HttpClient.

Constructors

DefaultHttp2Adapter({Duration idleTimeout = const Duration(seconds: 15), SecurityContext? context, Uri? proxy, bool onBadCertificate(X509Certificate)?, ValidateCertificate? validateCertificate})

Properties

connectionManager ↔ ConnectionManager
Manages the connections that should be reusable. It implements a connection reuse strategy for HTTP/2.
getter/setter pairinherited
fallbackAdapter ↔ HttpClientAdapter
HttpAdapter is a bridge between Dio and HttpClient.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
onNotSupported ↔ H2NotSupportedCallback?
Handles DioH2NotSupportedException and returns a ResponseBody.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close({bool force = false}) → void
Close the current adapter and its inner clients or requests.
inherited
fetch(RequestOptions options, Stream<Uint8List>? requestStream, Future<void>? cancelFuture) Future<ResponseBody>
Implement this method to make real HTTP requests.
inherited
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