convert msg crate to use hyper

This commit is contained in:
Sean McArthur 2014-11-17 17:59:44 -08:00 committed by Manish Goregaokar
parent 12727d4dd0
commit 1dc67f0c76
3 changed files with 7 additions and 7 deletions

View file

@ -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]

View file

@ -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,
}
}

View file

@ -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;