Skip to main content
Version: 3.x.x

interceptResponse


import { interceptResponse } from "@hyper-fetch/core"

Description

Defined in client/client.utils.ts:38

Preview

interceptResponse<GlobalErrorType, AdapterType>(interceptors, response, request)

Parameters

NameDetails

interceptors

Required

ResponseInterceptorType<any, any, BaseAdapterType<Partial<XMLHttpRequest>, HttpMethodsType, number, AdapterAdditionalDataType, string | QueryParamsType>>[]

response

Required

ResponseReturnType<any, GlobalErrorType, AdapterType>

request

Required

RequestInstance

Returns

Promise<ResponseReturnType<any, GlobalErrorType, AdapterType>>