Interface CustomHttpClientOptions

Allows you to use a custom http client for making HTTP requests, rather than the default or fetch API.

Just requires the implementation of a simple adapter interface.

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

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

interface CustomHttpClientOptions {
    client: "custom";
    fetcher: Fetcher;
    maxTimeMS?: number;
}

Properties

client: "custom"

Use a custom http client for making HTTP requests.

fetcher: Fetcher

The custom "fetcher" to use.

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.