Don't use hyper directly in request tests.

This commit is contained in:
Sergio Benitez 2017-03-15 20:30:07 -07:00
parent cb41ffc033
commit d1631ea845
1 changed files with 4 additions and 3 deletions

View File

@ -1,13 +1,14 @@
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
use std::collections::HashMap;
use {hyper, Request};
use Request;
use http::hyper;
macro_rules! assert_headers {
($($key:expr => [$($value:expr),+]),+) => ({
// Set up the parameters to the hyper request object.
let h_method = hyper::method::Method::Get;
let h_uri = hyper::uri::RequestUri::AbsolutePath("/test".to_string());
let h_method = hyper::Method::Get;
let h_uri = hyper::RequestUri::AbsolutePath("/test".to_string());
let h_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 8000);
let mut h_headers = hyper::header::Headers::new();