Open Policy Agent TypeScript Packages
    Preparing search index...
    type RequestOptions = {
        fetchOptions?: Omit<RequestInit, "method" | "body">;
        retries?: RetryConfig;
        retryCodes?: string[];
        serverURL?: string | URL;
        timeoutMs?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    fetchOptions?: Omit<RequestInit, "method" | "body">

    Sets various request options on the fetch call made by an SDK method.

    retries?: RetryConfig

    Set or override a retry policy on HTTP calls.

    retryCodes?: string[]

    Specifies the status codes which should be retried using the given retry policy.

    serverURL?: string | URL

    Overrides the base server URL that will be used by an operation.

    timeoutMs?: number

    Sets a timeout, in milliseconds, on HTTP requests made by an SDK method. If fetchOptions.signal is set then it will take precedence over this option.