WatchdogOptions
Defined in: core/src/watchdog.ts:266
Properties
Section titled “Properties”idleMs?
Section titled “idleMs?”optional idleMs?: number;Defined in: core/src/watchdog.ts:269
No byte this long after the response starts and the stream is dead.
Defaults to STREAM_IDLE_MS.
onFirstChunk?
Section titled “onFirstChunk?”optional onFirstChunk?: (ms) => void;Defined in: core/src/watchdog.ts:280
Time to first byte for this call, reported once the byte arrives.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ms |
number |
Returns
Section titled “Returns”void
progressMs?
Section titled “progressMs?”optional progressMs?: number;Defined in: core/src/watchdog.ts:272
No chunk this long, from the POST on, and the stream is going nowhere.
Defaults to STREAM_PROGRESS_MS, or to idleMs when that is longer.
requireContent?
Section titled “requireContent?”optional requireContent?: boolean;Defined in: core/src/watchdog.ts:278
Reject a turn that ends having said nothing, as requireContent does. On
by default: an empty completion is a failure in every loop, and the one
shaped like a success is the one nobody catches.