rewrapped Rc<RefCell<Response>> into Rc<Response>

This commit is contained in:
Nikki 2016-01-06 17:03:45 -07:00
parent ba8f007b88
commit c5982872c8
3 changed files with 20 additions and 24 deletions

View file

@ -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,