HttpClientFactory constructor

HttpClientFactory({
  1. HttpClientConfig? httpClientConfig,
  2. AsyncClientSecurityCallback<BasicCredentials>? basicCredentialsCallback,
  3. AsyncClientSecurityCallback<BearerCredentials>? bearerCredentialsCallback,
})

Creates a new HttpClientFactory based on an optional HttpConfig.

Implementation

HttpClientFactory({
  HttpClientConfig? httpClientConfig,
  AsyncClientSecurityCallback<BasicCredentials>? basicCredentialsCallback,
  AsyncClientSecurityCallback<BearerCredentials>? bearerCredentialsCallback,
})  : _basicCredentialsCallback = basicCredentialsCallback,
      _bearerCredentialsCallback = bearerCredentialsCallback,
      _httpClientConfig = httpClientConfig;