HttpConnection constructor
HttpConnection(
- String url, {
- 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;
}