Currently services::fetch:: does not support ReadableStreams, which would allow the user to read the body in byte chunks. However web-sys does currently not really support ReadableStreams (see wasm-bindgen/wasm-bindgen#1761), so in the meantime we will have to make a solution that uses handwritten bindings.
I'm still not exactly sure what the best yew API would look like, so any suggestions are very welcome 😄
I have no code to show yet - but I'll link to it when I do.
Currently services::fetch:: does not support ReadableStreams, which would allow the user to read the body in byte chunks. However web-sys does currently not really support ReadableStreams (see wasm-bindgen/wasm-bindgen#1761), so in the meantime we will have to make a solution that uses handwritten bindings.
I'm still not exactly sure what the best yew API would look like, so any suggestions are very welcome 😄
I have no code to show yet - but I'll link to it when I do.