ChatBotKit Node SDK
    Preparing search index...

    Class ResponsePromise<T, U>

    Type Parameters

    • T
    • U
    Index
    • Type Parameters

      • T
      • U

      Parameters

      • url: string | URL
      • request: {
            data?: any;
            fetchFn?: FetchFunction;
            headers: Record<string, any>;
            method: string;
            passthrough?: boolean;
            retries?: number;
            retryDelay?: number;
            retryTimeout?: boolean;
            timeout?: number;
        }
      • OptionalcacheMap: Map<string, Promise<T>> = ...

      Returns ResponsePromise<T, U>

    • Parameters

      • Optionalparams: {
            abortSignal?: AbortSignal;
            data?: any;
            fetchFn?: FetchFunction;
            headers?: Record<string, any>;
            method?: string;
            retries?: number;
            retryDelay?: number;
            retryTimeout?: boolean;
            timeout?: number;
        }

      Returns Promise<Response>

    • Resolves to the raw Response without parsing the body. Combined with the passthrough request option it does not throw on a non-2xx status, which makes it suitable for passthrough endpoints such as the secret proxy.

      Parameters

      Returns Promise<Response>