RequestOptions: {
    fetchOptions?: Omit<RequestInit, "method" | "body">;
    retries?: RetryConfig;
    retryCodes?: string[];
    timeoutMs?: number;
}

Type declaration

  • OptionalfetchOptions?: Omit<RequestInit, "method" | "body">

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

  • Optionalretries?: RetryConfig

    Set or override a retry policy on HTTP calls.

  • OptionalretryCodes?: string[]

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

  • OptionaltimeoutMs?: 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.