HttpConnection constructor

HttpConnection(
  1. String url, {
  2. required HttpConnectionOptions options,
})

Implementation

HttpConnection(String url, {required HttpConnectionOptions options})
    : _logger = options.logger {
  baseUrl = url;

  _options = options;
  _httpClient = options.httpClient ?? WebSupportingHttpClient(_logger);
  _connectionState = ConnectionState.Disconnected;
  _connectionStarted = false;
}