HermesClientConfig: {
    headers?: HeadersInit;
    httpRetries?: number;
    timeout?: DurationInMs;
}

Type declaration

  • Optional headers?: HeadersInit

    Optional headers to be included in every request.

  • Optional httpRetries?: number

    Number of times a HTTP request will be retried before the API returns a failure. Default: 3.

    The connection uses exponential back-off for the delay between retries. However, it will timeout regardless of the retries at the configured timeout time.

  • Optional timeout?: DurationInMs