mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make the net monitor panel in FF's devtools show meaningful output.
0) Advertise support for the network monitor in the initial protocol communication. 1) Only notify the developer tools server about the final request in an HTTP transaction. 2) Add timing information for connecting to the HTTP server and sending the HTTP request. 3) Reduce duplication between various networkEventUpdate structures by creating a helper function that merges two JSON structures together. This also corrects the JSON structure so the devtools client interprets the output correctly. 4) Calculate various header size fields correctly. 5) Remove unnecessary usize->u32 casts by making the appropriate fields usize. 6) Add header values to request and response header messages. 7) Support triggering page reloads via the devtools client.
This commit is contained in:
parent
1f5b0008ac
commit
7bf2e19437
11 changed files with 252 additions and 155 deletions
|
@ -19,7 +19,8 @@ use std::net::TcpStream;
|
|||
struct ActorTraits {
|
||||
sources: bool,
|
||||
highlightable: bool,
|
||||
customHighlighters: Vec<String>,
|
||||
customHighlighters: bool,
|
||||
networkMonitor: bool,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
|
@ -117,7 +118,8 @@ impl RootActor {
|
|||
traits: ActorTraits {
|
||||
sources: true,
|
||||
highlightable: true,
|
||||
customHighlighters: vec!("BoxModelHighlighter".to_owned()),
|
||||
customHighlighters: true,
|
||||
networkMonitor: true
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue