Skip to content

Commit

Permalink
⚡️ --
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Jan 10, 2024
1 parent 51099c2 commit 4164a12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/http2_adapter/lib/src/http2_adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ class DioH2NotSupportedException extends SocketException {
/// A Dio HttpAdapter which implements Http/2.0.
class Http2Adapter implements HttpClientAdapter {
Http2Adapter(
this.connectionManager, {
ConnectionManager? connectionManager, {
HttpClientAdapter? fallbackAdapter,
this.onNotSupported,
}) : fallbackAdapter = fallbackAdapter ?? IOHttpClientAdapter();
}) : connectionManager = connectionManager ?? ConnectionManager(),
fallbackAdapter = fallbackAdapter ?? IOHttpClientAdapter();

/// {@macro dio_http2_adapter.ConnectionManager}
ConnectionManager connectionManager;
Expand Down

0 comments on commit 4164a12

Please sign in to comment.