HttpClientFactoryServiceCollectionExtensions extension

ServiceCollection extensions for configuring HTTP clients.

on

Methods

addHttpClient([String name = Options.defaultName]) HttpClientBuilder

Available on ServiceCollection, provided by the HttpClientFactoryServiceCollectionExtensions extension

Registers the default HTTP client factory for a named client.
addHttpClientLogging() → void

Available on ServiceCollection, provided by the HttpClientFactoryServiceCollectionExtensions extension

Adds the logging filter to the HTTP client factory pipeline.
addHttpClientTyped<TClient extends BaseClient>(TClient factory(BaseClient client, ServiceProvider services), {String name = Options.defaultName}) HttpClientBuilder

Available on ServiceCollection, provided by the HttpClientFactoryServiceCollectionExtensions extension

Registers a typed client bound to the named client.