Interface FetchHttpClientOptions

The options available for the DataAPIClient related to making HTTP requests using the native fetch API.

This will be the fallback client if the default client fails to load/if the default client is not available.

See the astra-db-ts README for more information on different clients.

https://github.com/datastax/astra-db-ts

interface FetchHttpClientOptions {
    client: "fetch";
    maxTimeMS?: number;
}

Properties

Properties

client: "fetch"

Use the native fetch API for making HTTP requests.

maxTimeMS?: number

The default maximum time in milliseconds to wait for a response from the server.

This does not mean the request will be cancelled after this time, but rather that the client will wait for this time before considering the request to have timed out.

The request may or may not still be running on the server after this time.