mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
dom::Response implementation
This commit is contained in:
parent
569599d404
commit
faf32a7cfb
30 changed files with 402 additions and 124 deletions
|
@ -5,7 +5,6 @@
|
|||
use filemanager_thread::{FileManager, UIProvider};
|
||||
use hyper::header::{DispositionType, ContentDisposition, DispositionParam};
|
||||
use hyper::header::{Headers, ContentType, ContentLength, Charset};
|
||||
use hyper::http::RawStatus;
|
||||
use hyper_serde::Serde;
|
||||
use ipc_channel::ipc;
|
||||
use mime::{Mime, Attr};
|
||||
|
@ -72,7 +71,7 @@ fn load_blob<UI: 'static + UIProvider>
|
|||
charset: charset.map(|c| c.as_str().to_string()),
|
||||
headers: Some(Serde(headers)),
|
||||
// https://w3c.github.io/FileAPI/#TwoHundredOK
|
||||
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