Re: [whatwg/fetch] Proposal: Easier request/response rewrites (#671)

Maybe instead of making the constructors support two purposes, their usual one and the copying use case of the OP, it'd be better to add a dedicated static factory method.

I don't like duplicating `headers`'s functionality on `Request`; right now those objects are nice and loosely coupled, and introducing indirection methods that couple them together seems like a bad idea when the goal is to just save typing a `.`.

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

Received on Friday, 16 February 2018 16:27:55 UTC