mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Partial implementation of HTTP-network-or-cache fetch step.
This commit is contained in:
parent
c1cb9403a7
commit
d30998c4a6
4 changed files with 636 additions and 324 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use hyper::header::Headers;
|
||||
use hyper::status::StatusCode;
|
||||
use net_traits::{Response, ResponseBody, ResponseType};
|
||||
use net_traits::{CacheState, Response, ResponseBody, ResponseType};
|
||||
use std::ascii::AsciiExt;
|
||||
use std::cell::RefCell;
|
||||
use std::rc::Rc;
|
||||
|
@ -26,6 +26,7 @@ impl ResponseMethods for Response {
|
|||
status: Some(StatusCode::Ok),
|
||||
headers: Headers::new(),
|
||||
body: ResponseBody::Empty,
|
||||
cache_state: CacheState::None,
|
||||
internal_response: None
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue