| 07:26 | <annevk> | Seems good enough |
| 11:38 | <Ms2ger> | Domenic, were you planning to use IDL for kv-storage in the near future? |
| 16:22 | <Mek> | anybody have opinions on the spec compliance of XHR pre-emptively aborting a fetch it knows is never going to succeed because Content-Length is larger than we have room for? It's observable through progress events. Chrome started doing something like that a ~year ago, which apparently broke some speed tests on low end android devices... |
| 16:24 | <gsnedders> | de-jure, I think there's nothing that allows it; de-facto, I'd probably argue it 's fine ounder some implicit hardware limitations caluse |
| 16:28 | <annevk> | Mek: why only XHR? |
| 16:29 | <bkardell> | MikeSmith... browsers don't load the gzipped version?? wdym? |
| 16:29 | <bkardell> | would like to understand this better |
| 16:29 | <Mek> | annevk: good question, in this case that just happened to be the only place where I made that change (actually only XHR to blob even, as that was the code I was refactoring) |
| 16:30 | <annevk> | Mek: this would make sense to me at the HTTP level or maybe Fetch, but not XHR |
| 16:31 | <Mek> | fetch won't know if it needs space for all the bytes though, as it just gives of a stream. Only XHR knows it will have to store all the bytes before the fetch can succeed |
| 18:27 | <annevk> | Mek: interesting, file an issue? Might be worth highlighting at some point somehow |
| 18:32 | <Mek> | sure, will do |
| 19:44 | <Domenic> | Ms2ger: (who will hopefully read backlogs): I would like to use IDL for kv-storage over the next quarter or so. I would especially like to try the new modules stuff, but there are other issues to resolve as well, per https://github.com/WICG/kv-storage/issues/46 |
| 20:26 | <ondras> | so, is there a way to for-await-of consume a fetch's response.body ? |
| 20:40 | <Mek> | ondras: https://streams.spec.whatwg.org/#rs-get-iterator? |
| 20:40 | <Mek> | i.e. for await (bla of response.body.getIterator()) seems like it should work according to the spec? |
| 20:41 | <ondras> | Mek: right! but the getIterator() seems to be not-implemented-yet? |
| 20:42 | <Mek> | should be fairly easy to polyfill... |
| 20:42 | <ondras> | okay |
| 20:44 | <Mek> | https://jakearchibald.com/2017/async-iterators-and-generators/#making-streams-iterate for example |
| 20:49 | <ondras> | Mek: nice one, thanks for the link |