HTTPRequest: {
    client_timeout_ms: number;
    data: QueryRequest;
    headers: Record<string, string | undefined>;
    method: "POST";
}

An object representing an http request. The Client provides this to the HTTPClient implementation.

Type declaration

  • client_timeout_ms: number

    The timeout of each http request, in milliseconds.

  • data: QueryRequest

    The encoded Fauna query to send

  • headers: Record<string, string | undefined>

    Headers in object format

  • method: "POST"

    HTTP method to use