minimal implementation of http_network_fetch for testing purposes

This commit is contained in:
Nikki 2015-12-29 16:27:51 -07:00
parent e94a530597
commit af310f7874
4 changed files with 124 additions and 24 deletions

View file

@ -4,7 +4,7 @@
use hyper::header::Headers;
use hyper::status::StatusCode;
use net_traits::{CacheState, Response, ResponseBody, ResponseType};
use net_traits::{CacheState, HttpsState, Response, ResponseBody, ResponseType};
use std::ascii::AsciiExt;
use std::cell::RefCell;
use std::rc::Rc;
@ -27,6 +27,7 @@ impl ResponseMethods for Response {
headers: Headers::new(),
body: ResponseBody::Empty,
cache_state: CacheState::None,
https_state: HttpsState::None,
internal_response: None
}
}