Handle.client constructor

Handle.client(
  1. Client client, {
  2. WhenCallback? when,
  3. WhenErrorCallback? whenError,
  4. WhenRetriedCallback? onRetry,
  5. DelayCallback? delay,
  6. WhenRequestCallback? updateRequest,
})

Creates a client that allows retrying HTTP request with different request on response or errors

Implementation

factory Handle.client(
  Client client, {
  WhenCallback? when,
  WhenErrorCallback? whenError,
  WhenRetriedCallback? onRetry,
  DelayCallback? delay,
  WhenRequestCallback? updateRequest,
}) = HandleClient;