aed801aa31f9d05cffc6129c3bba42a9828cbf1ced8f5e630932a56dcaece9e7ace8341c1837a0fea3c22380dea0c080256b7ff0bf467ccdd7d17a0e51ce91 922 B

1234567891011121314151617
  1. import Dispatcher from "./dispatcher";
  2. import RetryHandler from "./retry-handler";
  3. export default Interceptors;
  4. declare namespace Interceptors {
  5. export type DumpInterceptorOpts = { maxSize?: number }
  6. export type RetryInterceptorOpts = RetryHandler.RetryOptions
  7. export type RedirectInterceptorOpts = { maxRedirections?: number }
  8. export type ResponseErrorInterceptorOpts = { throwOnError: boolean }
  9. export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
  10. export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
  11. export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
  12. export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
  13. export function responseError(opts?: ResponseErrorInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
  14. }