WhenRequestCallback typedef

WhenRequestCallback = FutureOr<BaseRequest> Function(BaseRequest originalRequest, BaseRequest lastRequest, FinalizedBodyStreamCallback bodyStream, BaseResponse? response, int retryCount)

Implementation

typedef WhenRequestCallback = FutureOr<BaseRequest> Function(
  BaseRequest originalRequest,
  BaseRequest lastRequest,
  FinalizedBodyStreamCallback bodyStream,
  BaseResponse? response,
  int retryCount,
);