mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
tests for devtools integration with network requests/responses
This commit is contained in:
parent
e04c2c78ee
commit
920bb5e4b8
8 changed files with 136 additions and 23 deletions
|
@ -258,10 +258,24 @@ pub enum CachedConsoleMessage {
|
|||
ConsoleAPI(ConsoleAPI),
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct HttpRequest {
|
||||
pub url: Url,
|
||||
pub method: Method,
|
||||
pub headers: Headers,
|
||||
pub body: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct HttpResponse {
|
||||
pub headers: Option<Headers>,
|
||||
pub status: Option<RawStatus>,
|
||||
pub body: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
pub enum NetworkEvent {
|
||||
HttpRequest(Url, Method, Headers, Option<Vec<u8>>),
|
||||
HttpResponse(Option<Headers>, Option<RawStatus>, Option<Vec<u8>>)
|
||||
HttpRequest(HttpRequest),
|
||||
HttpResponse(HttpResponse),
|
||||
}
|
||||
|
||||
impl TimelineMarker {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue