Extended Response type specifically for HTML responses. Used for handling HTTP responses containing HTML content.
Returns the response body as a string
async function fetchHTML(): Promise<HTMLResponse> { const response = await fetch("https://example.com"); return response as HTMLResponse;} Copy
async function fetchHTML(): Promise<HTMLResponse> { const response = await fetch("https://example.com"); return response as HTMLResponse;}
Extended Response type specifically for HTML responses. Used for handling HTTP responses containing HTML content.