Skip to content

probe

probe(targets, previous, fetchImpl, options?): Promise<ProbeResult>

Looks, a few at a time. A first look at an address only learns its ETag (whatever made it worth looking at has already been fetched). An address the service refuses or can’t find is dropped quietly; a network failure counts as no change and keeps the ETag, since the next full fetch comes anyway.

Parameter Type
targets readonly ProbeTarget[]
previous Readonly<Record<string, string>>
fetchImpl (input, init?) => Promise<Response>
options { concurrency?: number; timeoutMs?: number; }
options.concurrency? number
options.timeoutMs? number

Promise<ProbeResult>