mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
convert msg crate to use hyper
This commit is contained in:
parent
12727d4dd0
commit
1dc67f0c76
3 changed files with 7 additions and 7 deletions
|
@ -17,8 +17,8 @@ git = "https://github.com/servo/rust-azure"
|
|||
[dependencies.geom]
|
||||
git = "https://github.com/servo/rust-geom"
|
||||
|
||||
[dependencies.http]
|
||||
git = "https://github.com/servo/rust-http"
|
||||
[dependencies.hyper]
|
||||
git = "https://github.com/hyperium/hyper"
|
||||
branch = "servo"
|
||||
|
||||
[dependencies.layers]
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
use geom::rect::Rect;
|
||||
use geom::size::TypedSize2D;
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
use http::headers::request::HeaderCollection as RequestHeaderCollection;
|
||||
use http::method::{Method, Get};
|
||||
use hyper::header::Headers;
|
||||
use hyper::method::{Method, Get};
|
||||
use layers::geometry::DevicePixel;
|
||||
use servo_util::geometry::{PagePx, ViewportPx};
|
||||
use std::comm::{channel, Sender, Receiver};
|
||||
|
@ -214,7 +214,7 @@ pub enum Msg {
|
|||
pub struct LoadData {
|
||||
pub url: Url,
|
||||
pub method: Method,
|
||||
pub headers: RequestHeaderCollection,
|
||||
pub headers: Headers,
|
||||
pub data: Option<Vec<u8>>,
|
||||
}
|
||||
|
||||
|
@ -223,7 +223,7 @@ impl LoadData {
|
|||
LoadData {
|
||||
url: url,
|
||||
method: Get,
|
||||
headers: RequestHeaderCollection::new(),
|
||||
headers: Headers::new(),
|
||||
data: None,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
extern crate azure;
|
||||
extern crate geom;
|
||||
extern crate http;
|
||||
extern crate hyper;
|
||||
extern crate layers;
|
||||
extern crate serialize;
|
||||
extern crate "util" as servo_util;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue