Re: [fetch] Header guards (#182)

I'm not sure. The way we sometimes explain this "magic" is that if these objects were solely implemented in JavaScript they would accept a magic token in the constructor somewhere known only to the user agent that would do the right thing. It's not clear you can really polyfill that though. @domenic?

I suspect at some point we should give this constructor a second argument that takes a dictionary that does expose this. And perhaps also expose guard as a getter on the object's prototype. Not sure.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/182#issuecomment-164730971

Received on Tuesday, 15 December 2015 11:12:14 UTC