addHttpClientTyped<TClient extends BaseClient> method

HttpClientBuilder addHttpClientTyped<TClient extends BaseClient>(
  1. TClient factory(
    1. BaseClient client,
    2. ServiceProvider services
    ), {
  2. 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);