Re: [whatwg/fetch] String representations for Fetch API objects (Issue #1575)

With the notable exception of https://console.spec.whatwg.org/ standards don't do a lot of active work around debugging.

Stringification of URL objects is there because it helps when writing code. That's why it has `toJSON()` as well.

Some kind of approximate stringification of `Headers`, `Request`, and `Response` would not I think.

`toJSON()` for `Headers` could be reasonable though. Just have to make sure we properly account for `Set-Cookie` when designing that.

`console.log()` for these objects providing a richer experience also seems quite reasonable. Perhaps the Console Standard can help with that somehow? cc @domfarolino 

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

Message ID: <whatwg/fetch/issues/1575/1357708968@github.com>

Received on Monday, 19 December 2022 13:57:01 UTC