mirror of https://github.com/rwf2/Rocket.git
Don't use hyper directly in request tests.
This commit is contained in:
parent
cb41ffc033
commit
d1631ea845
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue