addHttpClientTyped<TClient extends BaseClient> method
HttpClientBuilder
addHttpClientTyped<TClient extends BaseClient>(
- TClient factory(
- BaseClient client,
- ServiceProvider services
- String name = Options.defaultName,
Registers a typed client bound to the named client.
Implementation
HttpClientBuilder addHttpClientTyped<TClient extends http.BaseClient>(
TClient Function(
http.BaseClient client,
ServiceProvider services,
) factory, {
String name = Options.defaultName,
}) =>
addHttpClient(name)..addTypedClient<TClient>(factory);