[whatwg/fetch] Provide ability to encode content from browser/runtime in fetch API. (#653)

Hi, all.

AFAIK, at this moment, there is no way to ask browser/runtime to encode the request content when calling `fetch` API.

When handling logging, browser/runtime native gzip encoding is very useful to reduce the bandwidth. 

I only need gzip because that is the most common case, but from spec aspect, it is flexible to provide more options.

I am not sure if it is a good options to provide such ability inside `fetch` API. Maybe another API co-work with `fetch` API is better.


-- 
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/653

Received on Thursday, 4 January 2018 18:05:12 UTC