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.
Parameters
Section titled “Parameters”string | URL
The URL to test.
signal?
Section titled “signal?”AbortSignal | null
An optional AbortSignal to cancel the request.
Returns
Section titled “Returns”Promise<boolean>
A promise that resolves to true if the URL is available, false
otherwise.