servo/components/net/fetch
Usman Yahaya Baba a27715a5a8
Calculate and send the missing transferred_size and content_size to dev tools (#38216)
The current behaviour in dev tools network monitor is missing data for
the `Transferred` size and `Content` size.
We currently have a fn `response_content` that constructs the
`ResponseContentMsg` struct where the two missing data fields are
defined and set to zero values.
These current changes calculates the data in the `response_content` fn
and sends a `NetworkEvent::HttpResponse` to the client when the final
body is done.
Currently, we have data appearing in the `Transferred` column of the
network panel
fixes: https://github.com/servo/servo/issues/38126

---------

Signed-off-by: uthmaniv <uthmanyahayababa@gmail.com>
2025-08-02 02:41:53 +00:00
..
cors_cache.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
fetch_params.rs add minimal implementation of FetchParams (#34833) 2025-01-12 14:37:25 +00:00
headers.rs Implement fetch metadata headers (#33830) 2024-10-16 04:15:56 +00:00
methods.rs Calculate and send the missing transferred_size and content_size to dev tools (#38216) 2025-08-02 02:41:53 +00:00