interface HttpIndicatorOptions
Since 0.2.0

Options for creating an HTTP probe indicator.

Properties

readonly
url: string

The URL to probe.

readonly
optional
timeoutMs: number

Timeout in milliseconds for the request.

Defaults to 5000 (5 seconds).

readonly
optional
fetcher: fetch

Injectable fetcher for testing.

Defaults to globalThis.fetch.

Usage

import { type HttpIndicatorOptions } from "health-plugin/src/index.ts";