HttpClientFactory class final
A ProtocolClientFactory that produces HTTP and HTTPS clients.
- Implemented types
Constructors
-
HttpClientFactory({HttpClientConfig? httpClientConfig, AsyncClientSecurityCallback<
BasicCredentials> ? basicCredentialsCallback, AsyncClientSecurityCallback<BearerCredentials> ? bearerCredentialsCallback}) - Creates a new HttpClientFactory based on an optional HttpConfig.
Properties
Methods
-
createClient(
) → ProtocolClient -
Creates a new ProtocolClient with that supports one or more of the given
schemes.
override
-
destroy(
) → bool -
Destroys this ProtocolClientFactory.
override
-
init(
) → bool -
Initializes this ProtocolClientFactory.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supportsOperation(
OperationType operationType, String? subprotocol) → bool -
Indicates whether this ProtocolClientFactory supports a given
operationType
and subprotocol.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited