AFAIK, there is currently no way of using XMLHttpRequest to make a POST
using Transfer-Encoding: Chunked. IMO, this would be a very useful
feature for repeatedly sending short messages to a server.
You can always make POSTs repeatedly, one per chunk, and arrange for the
server to glue the chunks
On Fri, Nov 14, 2014 at 7:49 PM, Rui Prior rpr...@dcc.fc.up.pt wrote:
You can always make POSTs repeatedly, one per chunk, and arrange for the
server to glue the chunks together, but for short messages this
process adds a lot of overhead (a full HTTP request per chunk, with full
headers for
We're adding Streams API https://streams.spec.whatwg.org/ based response
body receiving feature to the Fetch API
See
- https://github.com/slightlyoff/ServiceWorker/issues/452
- https://github.com/yutakahirano/fetch-with-streams
Similarly, using WritableStream + Fetch API, we could allow for
If I recall how Node.js does this, if you don’t provide a `Content-Length`
header, it automatically sets `Transfer-Encoding: chunked` the moment you start
writing to the body.
What do we think of that kind of behavior for fetch requests? My opinion is
that it’s pretty convenient, but I am not
On Mon, Nov 17, 2014 at 3:50 PM, Domenic Denicola d...@domenic.me wrote:
What do we think of that kind of behavior for fetch requests?
I'm not sure we want to give a potential hostile piece of script that
much control over what goes out. Being able to lie about
Content-Length would be a new
On Tue, Nov 18, 2014 at 12:11 AM, Anne van Kesteren ann...@annevk.nl
wrote:
On Mon, Nov 17, 2014 at 3:50 PM, Domenic Denicola d...@domenic.me wrote:
What do we think of that kind of behavior for fetch requests?
I'm not sure we want to give a potential hostile piece of script that
much
From: Takeshi Yoshino [mailto:tyosh...@google.com]
On Tue, Nov 18, 2014 at 12:11 AM, Anne van Kesteren ann...@annevk.nl wrote:
On Mon, Nov 17, 2014 at 3:50 PM, Domenic Denicola d...@domenic.me wrote:
What do we think of that kind of behavior for fetch requests?
I'm not sure we want to give
On Tue, Nov 18, 2014 at 1:45 PM, Domenic Denicola d...@domenic.me wrote:
From: Takeshi Yoshino [mailto:tyosh...@google.com]
On Tue, Nov 18, 2014 at 12:11 AM, Anne van Kesteren ann...@annevk.nl
wrote:
On Mon, Nov 17, 2014 at 3:50 PM, Domenic Denicola d...@domenic.me wrote:
What do we