- From: Jimmy Wärting <notifications@github.com>
- Date: Sat, 02 Sep 2023 04:17:32 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 2 September 2023 11:17:39 UTC
it could be handy to get ahold of the resource timing when making a request. `performance.getEntries()` only returns completed requests. if we could get an incomplete one then we could figure this out by ourself and it would be easier to know which one belongs to the actual request that you have made. ```js fetch(url, { onTiming (resourceTiming) { // do things with it. } }) ``` --- > Putting the information on ReadableStream means it's not possible to use the convenience methods (e.g. json(), arrayBuffer(), blob()), as the body is locked to one reader you could always clone the response. ```js var clone = response.clone() response.json().then(console.log) clone.body.pipeTo(progressStream) ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/1358#issuecomment-1703804701 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/1358/1703804701@github.com>
Received on Saturday, 2 September 2023 11:17:39 UTC