Skip to content

InterceptorManager

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/api-client/src/utils/interceptors.ts

Manager for request/response interceptors

Methods

MethodSignatureReturns
addRequestInterceptoraddRequestInterceptor(interceptor: RequestInterceptor)() => void
addResponseInterceptoraddResponseInterceptor(interceptor: ResponseInterceptor)() => void
addErrorInterceptoraddErrorInterceptor(interceptor: ErrorInterceptor)() => void
executeRequestInterceptorsexecuteRequestInterceptors(config: RequestConfig)Promise<RequestConfig>
executeResponseInterceptorsexecuteResponseInterceptors(response: APIResponse<T>)Promise<APIResponse<T>>
executeErrorInterceptorsexecuteErrorInterceptors(error: Error)Promise<Error>
clearclear()void

Was this page helpful?

Download as PDF