boundfetch
    Preparing search index...

    Interface BoundFetchPlugin

    Plugin hooks for request/response/error pipelines.

    wrapEndpointCall is the highest-leverage hook for behaviors like retry and circuit breaking.

    interface BoundFetchPlugin {
        afterResponse?: AfterResponseMiddleware;
        beforeRequest?: BeforeRequestMiddleware;
        name: string;
        onError?: OnErrorMiddleware;
        wrapEndpointCall?: (
            next: EndpointExecutor,
            context: EndpointCallContext,
        ) => Promise<unknown>;
    }
    Index

    Properties

    afterResponse?: AfterResponseMiddleware
    beforeRequest?: BeforeRequestMiddleware
    name: string
    wrapEndpointCall?: (
        next: EndpointExecutor,
        context: EndpointCallContext,
    ) => Promise<unknown>