Skip to main content
Version: 5.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, string>>[]

response

Required

ResponseReturnType<any, GlobalErrorType, Adapter>

request

Required

RequestInstance

Returns

Promise<ResponseReturnType<any, GlobalErrorType, Adapter>>