- From: Martin Lasak <notifications@github.com>
- Date: Fri, 11 Jun 2021 02:04:28 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 11 June 2021 09:05:04 UTC
We are in a unsatisfying situation. Using fetch API with chunked transfer encoding there is currently no way to get the time when the chunk reception has started, see https://github.com/whatwg/streams/issues/1126 When i stumbled upon HTTP Trailer [1] i shortly believed that we could solve our issue with it. The idea is to send a list with timestamps when each single chunk was put into "pipe" at server side. With some calculation we would be then enabled to calculate exact e2e network throughput. But unfortunately, fetch API doesn't support trailers. If you need a use case: we are in need for exact throughput calculation in low latency video streaming. Is there any chance for Trailer support in fetch API in future? [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/981#issuecomment-859407001
Received on Friday, 11 June 2021 09:05:04 UTC