Skip to main content
Version: 4.x.x

interceptResponse


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

Description

Defined in client/client.utils.ts:38

Preview

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

Parameters

NameDetails

interceptors

Required

ResponseInterceptorType<any, any, AdapterType<Partial<XMLHttpRequest>, HttpMethodsType, number, AdapterExtraType, string | QueryParamsType>>[]

response

Required

ResponseReturnType<any, GlobalErrorType, Adapter>

request

Required

RequestInstance

Returns

Promise<ResponseReturnType<any, GlobalErrorType, Adapter>>