Provide an example of configuring IOClient with an HttpClient. (#1074)
diff --git a/pkgs/http/lib/src/io_client.dart b/pkgs/http/lib/src/io_client.dart
index 247cc8c..db66b02 100644
--- a/pkgs/http/lib/src/io_client.dart
+++ b/pkgs/http/lib/src/io_client.dart
@@ -72,6 +72,18 @@
/// The underlying `dart:io` HTTP client.
HttpClient? _inner;
+ /// Create a new `dart:io`-based HTTP [Client].
+ ///
+ /// If [inner] is provided then it can be used to provide configuration
+ /// options for the client.
+ ///
+ /// For example:
+ /// ```dart
+ /// final httpClient = HttpClient()
+ /// ..userAgent = 'Book Agent'
+ /// ..idleTimeout = const Duration(seconds: 5);
+ /// final client = IOClient(httpClient);
+ /// ```
IOClient([HttpClient? inner]) : _inner = inner ?? HttpClient();
/// Sends an HTTP request and asynchronously returns the response.