ImpakRetroClientInterceptorCallbacks constructor

ImpakRetroClientInterceptorCallbacks({
  1. Future<void> onBeforeRequest(
    1. RequestOptions options,
    2. RequestInterceptorHandler handler
    )?,
  2. Future<void> onAfterResponse(
    1. Response response,
    2. ResponseInterceptorHandler handler
    )?,
  3. Future<void> onAfterError(
    1. DioException err,
    2. ErrorInterceptorHandler handler
    )?,
})

Creates hooks; each callback must forward the handler when finished.

Implementation

ImpakRetroClientInterceptorCallbacks({
  this.onBeforeRequest,
  this.onAfterResponse,
  this.onAfterError,
});