net: Send ResponseContentObj to Devtools (#38625)

Currently, the response tab for a request's detail in devtools does not
show the available data, this was due to how the content is being
structured (not the way firefox's devtools client expects it) and also
the body being discarded and not stored in the actor.
This PR stores the body in the actor , which is then retrieved in
`getResponseContent` and then use it to instantiate the new struct
`ResponseContentObj` which matches the format firefox's expects

Fixes: https://github.com/servo/servo/issues/38128

---------

Signed-off-by: uthmaniv <uthmanyahayababa@gmail.com>
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Usman Yahaya Baba 2025-08-15 17:26:24 +09:00 committed by GitHub
parent d409137e4c
commit 02dca0fb21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 184 additions and 9 deletions

1
Cargo.lock generated
View file

@ -1910,6 +1910,7 @@ name = "devtools"
version = "0.0.1"
dependencies = [
"base",
"base64 0.22.1",
"chrono",
"crossbeam-channel",
"devtools_traits",