botas-core
    Preparing search index...

    Interface BotRequestOptions

    Options for a single HTTP request made by BotHttpClient.

    interface BotRequestOptions {
        operationDescription?: string;
        returnNullOnNotFound?: boolean;
        headers?: Record<string, string>;
    }
    Index

    Properties

    operationDescription?: string

    Human-readable description of the operation (used in error messages).

    returnNullOnNotFound?: boolean

    When true, a 404 response returns undefined instead of throwing.

    headers?: Record<string, string>

    Additional request headers to merge in.