@ac-essentials/misc-util
    Preparing search index...

    Function isHttpAvailable

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

      Parameters

      • url: string | URL

        The URL to test.

      • Optionalsignal: null | AbortSignal

        An optional AbortSignal to cancel the request.

      Returns Promise<boolean>

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