seanmonstar / reqwest

An easy and powerful Rust HTTP Client
https://docs.rs/reqwest
Apache License 2.0
9.85k stars 1.11k forks source link

Support Response chunk in wasm #1317

Open dabreegster opened 3 years ago

dabreegster commented 3 years ago

Response on native has a chunk method, which allows some kind of progress bar, like this.

The wasm Response doesn't have anything similar. Any plans to add it? I've come up with a basic implementation of streaming downloads on WASM, using wasm-streams. It's definitely messy. I have a pretty poor understanding of all the web stream and buffer APIs, so maybe something generalizable and high-quality isn't feasible.

michaelkirk commented 2 years ago

Fixed by https://github.com/seanmonstar/reqwest/pull/1372 ?

Xuanwo commented 1 year ago

Implemented in https://github.com/seanmonstar/reqwest/pull/1713