kinetex - v1.0.0-rc.1
    Preparing search index...

    Type Alias RequestInterceptor

    RequestInterceptor: (
        ctx: InterceptorContext,
    ) =>
        | void
        | KinetexRequest
        | KinetexResponse<unknown>
        | Promise<void | KinetexRequest | KinetexResponse<unknown>>

    An interceptor that can modify, replace, or short-circuit a request.

    Return values:

    • void / undefined — pass through (possibly mutated ctx.request)
    • KinetexRequest — replace the request
    • KinetexResponse — short-circuit; skip the actual fetch
    • throw — abort the pipeline with that error

    Type Declaration