mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
dom::Response implementation
This commit is contained in:
parent
569599d404
commit
faf32a7cfb
30 changed files with 402 additions and 124 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue