Logos DX
    Preparing search index...

    Interface EngineLifecycle<H, P>

    Lifecycle hooks for requests.

    interface EngineLifecycle<H = InstanceHeaders, P = InstanceParams> {
        onAfterReq?: (
            response: Response,
            opts: EngineRequestOpts<H, P>,
        ) => void | Promise<void>;
        onBeforeReq?: (opts: EngineRequestOpts<H, P>) => void | Promise<void>;
        onError?: (err: FetchError<any, any>) => void | Promise<void>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    onAfterReq?: (
        response: Response,
        opts: EngineRequestOpts<H, P>,
    ) => void | Promise<void>
    onBeforeReq?: (opts: EngineRequestOpts<H, P>) => void | Promise<void>
    onError?: (err: FetchError<any, any>) => void | Promise<void>