dom::Response implementation

This commit is contained in:
Malisa Smith 2016-08-05 16:18:55 -07:00
parent 569599d404
commit faf32a7cfb
30 changed files with 402 additions and 124 deletions

View file

@ -560,9 +560,8 @@ pub struct Metadata {
/// Headers
pub headers: Option<Serde<Headers>>,
#[ignore_heap_size_of = "Defined in hyper"]
/// HTTP Status
pub status: Option<Serde<RawStatus>>,
pub status: Option<(u16, Vec<u8>)>,
/// Is successful HTTPS connection
pub https_state: HttpsState,
@ -580,7 +579,7 @@ impl Metadata {
charset: None,
headers: None,
// https://fetch.spec.whatwg.org/#concept-response-status-message
status: Some(Serde(RawStatus(200, "OK".into()))),
status: Some((200, b"OK".to_vec())),
https_state: HttpsState::None,
referrer: None,
}