Library API
    Preparing search index...

    Function fetchHead

    • Performs an HTTP HEAD request to retrieve response headers without the body. Useful for verifying URL existence or checking metadata.

      Parameters

      • url: string | URL

        The resource URL to check

      Returns Promise<{ headers: Headers; status: number }>

      A promise resolving to the response status and headers

      const { status } = await fetchHead('https://example.com');