mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
rewrapped Rc<RefCell<Response>> into Rc<Response>
This commit is contained in:
parent
ba8f007b88
commit
c5982872c8
3 changed files with 20 additions and 24 deletions
|
@ -67,7 +67,7 @@ pub struct Response {
|
|||
pub response_type: ResponseType,
|
||||
pub termination_reason: Option<TerminationReason>,
|
||||
pub url: Option<Url>,
|
||||
pub url_list: Vec<Url>,
|
||||
pub url_list: RefCell<Vec<Url>>,
|
||||
/// `None` can be considered a StatusCode of `0`.
|
||||
pub status: Option<StatusCode>,
|
||||
pub headers: Headers,
|
||||
|
@ -76,7 +76,7 @@ pub struct Response {
|
|||
pub https_state: HttpsState,
|
||||
/// [Internal response](https://fetch.spec.whatwg.org/#concept-internal-response), only used if the Response
|
||||
/// is a filtered response
|
||||
pub internal_response: Option<Rc<RefCell<Response>>>,
|
||||
pub internal_response: Option<Rc<Response>>,
|
||||
}
|
||||
|
||||
impl Response {
|
||||
|
@ -85,7 +85,7 @@ impl Response {
|
|||
response_type: ResponseType::Error,
|
||||
termination_reason: None,
|
||||
url: None,
|
||||
url_list: vec![],
|
||||
url_list: RefCell::new(vec![]),
|
||||
status: None,
|
||||
headers: Headers::new(),
|
||||
body: ResponseBody::Empty,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue