mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add aborted flag to response, set when fetch is aborted
This commit is contained in:
parent
7249fd6bd8
commit
6f59b152f1
3 changed files with 21 additions and 8 deletions
|
@ -112,6 +112,8 @@ pub struct Response {
|
|||
pub internal_response: Option<Box<Response>>,
|
||||
/// whether or not to try to return the internal_response when asked for actual_response
|
||||
pub return_internal: bool,
|
||||
/// https://fetch.spec.whatwg.org/#concept-response-aborted
|
||||
pub aborted: bool,
|
||||
}
|
||||
|
||||
impl Response {
|
||||
|
@ -133,6 +135,7 @@ impl Response {
|
|||
location_url: None,
|
||||
internal_response: None,
|
||||
return_internal: true,
|
||||
aborted: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,6 +165,7 @@ impl Response {
|
|||
location_url: None,
|
||||
internal_response: None,
|
||||
return_internal: true,
|
||||
aborted: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue