mirror of
https://github.com/servo/servo.git
synced 2025-06-27 10:33:39 +01:00
Update hyper to 0.12
This commit is contained in:
parent
95bfaa0a77
commit
024b40b39d
122 changed files with 3835 additions and 3448 deletions
|
@ -11,8 +11,7 @@ path = "lib.rs"
|
|||
|
||||
[dependencies]
|
||||
bitflags = "1.0"
|
||||
hyper = "0.10"
|
||||
hyper_serde = "0.8"
|
||||
http = "0.1"
|
||||
ipc-channel = "0.11"
|
||||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
malloc_size_of_derive = { path = "../malloc_size_of_derive" }
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
extern crate hyper;
|
||||
extern crate http;
|
||||
extern crate ipc_channel;
|
||||
extern crate malloc_size_of;
|
||||
#[macro_use]
|
||||
|
@ -24,8 +24,8 @@ extern crate serde;
|
|||
extern crate servo_url;
|
||||
extern crate time;
|
||||
|
||||
use hyper::header::Headers;
|
||||
use hyper::method::Method;
|
||||
use http::HeaderMap;
|
||||
use http::method::Method;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use servo_url::ServoUrl;
|
||||
|
@ -301,7 +301,7 @@ pub enum CachedConsoleMessage {
|
|||
pub struct HttpRequest {
|
||||
pub url: ServoUrl,
|
||||
pub method: Method,
|
||||
pub headers: Headers,
|
||||
pub headers: HeaderMap,
|
||||
pub body: Option<Vec<u8>>,
|
||||
pub pipeline_id: PipelineId,
|
||||
pub startedDateTime: Tm,
|
||||
|
@ -313,7 +313,7 @@ pub struct HttpRequest {
|
|||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub struct HttpResponse {
|
||||
pub headers: Option<Headers>,
|
||||
pub headers: Option<HeaderMap>,
|
||||
pub status: Option<(u16, Vec<u8>)>,
|
||||
pub body: Option<Vec<u8>>,
|
||||
pub pipeline_id: PipelineId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue