Performs an HTTP HEAD request to retrieve response headers without the body. Useful for verifying URL existence or checking metadata.
The resource URL to check
A promise resolving to the response status and headers
const { status } = await fetchHead('https://example.com'); Copy
const { status } = await fetchHead('https://example.com');
Performs an HTTP HEAD request to retrieve response headers without the body. Useful for verifying URL existence or checking metadata.