Http2Adapter class
A Dio HttpAdapter which implements Http/2.0.
Constructors
- Http2Adapter(ConnectionManager? connectionManager, {HttpClientAdapter? fallbackAdapter, H2NotSupportedCallback? onNotSupported})
Properties
- connectionManager ↔ ConnectionManager
-
Manages the connections that should be reusable.
It implements a connection reuse strategy for HTTP/2.
getter/setter pair
- fallbackAdapter ↔ HttpClientAdapter
-
HttpAdapter
is a bridge betweenDio
and HttpClient.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- onNotSupported ↔ H2NotSupportedCallback?
-
Handles DioH2NotSupportedException and returns a
ResponseBody
.getter/setter pair - 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.
-
fetch(
RequestOptions options, Stream< Uint8List> ? requestStream, Future<void> ? cancelFuture) → Future<ResponseBody> - Implement this method to make real HTTP requests.
-
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
Static Methods
-
resolveRedirectUri(
Uri currentUri, Uri redirectUri) → String