HttpClientImpl constructor

HttpClientImpl({
  1. HttpClientFactory clientFactory,
  2. StringCallback debugPrint,
  3. StringFilter userAgent,
})

Implementation

HttpClientImpl(
    {this.clientFactory, StringCallback debugPrint, StringFilter userAgent})
    : super(debugPrint: debugPrint) {
  clientFactory ??= () => UserAgentBaseClient(
      userAgent == null ? null : userAgent('HttpClientImpl'), http.Client());
}