Skip to content

isHttpAvailable

isHttpAvailable(url, signal?): Promise<boolean>

Defined in: packages/net-http/src/http/is-http-available.ts:9

Test if an HTTP(S) URL is available by performing a HEAD request.

string | URL

The URL to test.

AbortSignal | null

An optional AbortSignal to cancel the request.

Promise<boolean>

A promise that resolves to true if the URL is available, false otherwise.