mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Initial changes for devtools support for logging HTTP requests.
Add a NetworkEventActor to devtools/actors/ Authors: Ashritha Mohan Ram <amohanr@ncsu.edu> Himaja Valavala <hsvalava@ncsu.edu> Anand Chandrasekar <achandr9@ncsu.edu> Yiyang Wang <ywang95@ncsu.edu>
This commit is contained in:
parent
49aed6555d
commit
9f4a88bc48
10 changed files with 189 additions and 9 deletions
|
@ -14,6 +14,7 @@
|
|||
extern crate msg;
|
||||
extern crate rustc_serialize;
|
||||
extern crate url;
|
||||
extern crate hyper;
|
||||
extern crate util;
|
||||
extern crate time;
|
||||
|
||||
|
@ -22,6 +23,10 @@ use msg::constellation_msg::{PipelineId, WorkerId};
|
|||
use util::str::DOMString;
|
||||
use url::Url;
|
||||
|
||||
use hyper::header::Headers;
|
||||
use hyper::http::RawStatus;
|
||||
use hyper::method::Method;
|
||||
|
||||
use std::net::TcpStream;
|
||||
use std::sync::mpsc::{Sender, Receiver};
|
||||
|
||||
|
@ -41,7 +46,9 @@ pub enum DevtoolsControlMsg {
|
|||
AddClient(TcpStream),
|
||||
NewGlobal((PipelineId, Option<WorkerId>), Sender<DevtoolScriptControlMsg>, DevtoolsPageInfo),
|
||||
SendConsoleMessage(PipelineId, ConsoleMessage),
|
||||
ServerExitMsg
|
||||
ServerExitMsg,
|
||||
HttpRequest(Url, Method, Headers, Option<Vec<u8>>),
|
||||
HttpResponse(Option<Headers>, RawStatus, Vec<u8>)
|
||||
}
|
||||
|
||||
/// Serialized JS return values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue