Skip to content

Commit

Permalink
convert msg crate to use hyper
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar authored and Manishearth committed Dec 4, 2014
1 parent 12727d4 commit 1dc67f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions components/msg/Cargo.toml
Expand Up @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions components/msg/constellation_msg.rs
Expand Up @@ -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};
Expand Down Expand Up @@ -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>>,
}

Expand All @@ -223,7 +223,7 @@ impl LoadData {
LoadData {
url: url,
method: Get,
headers: RequestHeaderCollection::new(),
headers: Headers::new(),
data: None,
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/msg/lib.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 1dc67f0

Please sign in to comment.