Re: [whatwg/fetch] static method: `Response.html`? (Issue #1865)

noamr left a comment (whatwg/fetch#1865)

> `Response.json()` doesn't take a string. 

Right, of course. 

> And at least historically we've not wanted to bring in anything more complex than JSON as it would intertwine too many modules.

This would not do anything HTML specific apart from set the content-type.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1865#issuecomment-3372012774
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1865/3372012774@github.com>

Received on Monday, 6 October 2025 14:34:18 UTC