Re: [whatwg/fetch] Streams based uploading with Content-Length (not chunked encoding) (#95)

Making such restrictions (or forbidding it from being set more than once) are actually somewhat tricky given that all the APIs are generic. I wonder if a nicer alternative could be wrapping a ReadableStream somehow: `{ stream, length: 123 }`. That way we have typed data from the start and then the fetch algorithm can just use it to set the header correctly.

-- 
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/95#issuecomment-318665783

Received on Friday, 28 July 2017 14:25:14 UTC