IOClient constructor

IOClient([
  1. 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:

final httpClient = HttpClient()
   ..userAgent = 'Book Agent'
   ..idleTimeout = const Duration(seconds: 5);
final client = IOClient(httpClient);

Implementation

IOClient([HttpClient? inner]) : _inner = inner ?? HttpClient();