Add one letter in 5-network/03-fetch-progress
This commit is contained in:
parent
b19a6f0803
commit
d7c2f0819e
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ The `fetch` method allows to track *download* progress.
|
|||
|
||||
Please note: there's currently no way for `fetch` to track *upload* progress. For that purpose, please use [XMLHttpRequest](info:xmlhttprequest), we'll cover it later.
|
||||
|
||||
To track download progress, we can use `response.body` property. It's `ReadableStream` -- a special object that provides body chunk-by-chunk, as it comes. Readable streams are described in the [Streams API](https://streams.spec.whatwg.org/#rs-class) specification.
|
||||
To track download progress, we can use `response.body` property. It's a `ReadableStream` -- a special object that provides body chunk-by-chunk, as it comes. Readable streams are described in the [Streams API](https://streams.spec.whatwg.org/#rs-class) specification.
|
||||
|
||||
Unlike `response.text()`, `response.json()` and other methods, `response.body` gives full control over the reading process, and we can count how much is consumed at any moment.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue