KC's Workspace
    Preparing search index...
    interface FetchOptions {
        onAfterResponse?: (
            response: Response,
            req: IncomingMessage,
            res: ServerResponse,
            options: NormalizedServerOptions,
        ) => void | Promise<void>;
        onBeforeRequest?: (
            requestOptions: RequestInit,
            req: IncomingMessage,
            res: ServerResponse,
            options: NormalizedServerOptions,
        ) => void | Promise<void>;
        requestOptions?: RequestInit;
    }
    Index

    Properties

    onAfterResponse?: (
        response: Response,
        req: IncomingMessage,
        res: ServerResponse,
        options: NormalizedServerOptions,
    ) => void | Promise<void>

    Called after receiving the fetch response

    onBeforeRequest?: (
        requestOptions: RequestInit,
        req: IncomingMessage,
        res: ServerResponse,
        options: NormalizedServerOptions,
    ) => void | Promise<void>

    Called before making the fetch request

    requestOptions?: RequestInit

    Fetch request options