HttpClientFactory constructor
HttpClientFactory({
- HttpClientConfig? httpClientConfig,
- AsyncClientSecurityCallback<
BasicCredentials> ? basicCredentialsCallback, - 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;