ChemPal Documentation - v1.7.0
    Preparing search index...

    Interface RequestOptions

    Represents the options for a request. This type is used to standardize the format of request options across different supplier implementations.

    interface RequestOptions {
        path: string | URL;
        host?: string;
        body?: string | object;
        params?: Maybe<RequestParams>;
        headers?: Maybe<Record<string, string>>;
        rethrowErrors?: boolean;
    }
    Index

    Properties

    path: string | URL
    host?: string
    body?: string | object
    headers?: Maybe<Record<string, string>>
    rethrowErrors?: boolean

    When true, a non-abort fetch failure (e.g. an HttpError such as 429) is rethrown instead of being swallowed and returned as undefined. Lets callers implement status-aware retry/backoff. Defaults to false (the historical swallow-and-return-undefined behavior).