Add CustomInspect for Headers #3130
CI says its failing on
And this has no output:
Thanks for this.
Bringing this one back up after looking it over at the weekend after some strange issues I ran into.
I get this error when running the failing media types test, which looks like a permissions issue? Or the webserver is shutting down before the test completes after running into a failure? I think its beyond my knowledge of the deno testing codebase at the moment.
cli/js/headers.ts - Adds an implementation of CustomInspect for the Headers class - Worth noting due to implementation of the Headers class the contents of headersMap have lowercase keys, although this matches the specification as header keys are case agnostic it does seem to not match behaviour of other implementations in other languages I have seen, would require some rewriting of Headers.ts cli/js/headers_test.ts - Adds a test to ensure that the output matches expectations