HandleClient constructor

HandleClient(
  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

HandleClient(
  super.client, {
  this.when,
  this.whenError,
  this.onRetry,
  this.delay,
  this.updateRequest,
});