Rename net/fetch/request.rs to net/fetch/methods.rs and move Request to net_traits

This commit is contained in:
Keith Yeung 2016-01-17 23:34:41 -05:00
parent eb7b9309dd
commit a53661f6c8
5 changed files with 157 additions and 147 deletions

View file

@ -4,8 +4,9 @@
use hyper::server::{Listening, Server};
use hyper::server::{Request as HyperRequest, Response as HyperResponse};
use net::fetch::request::{Context, fetch, Referer, Request};
use net_traits::response::{Response};
use net::fetch::methods::fetch;
use net_traits::request::{Context, Referer, Request};
use net_traits::response::Response;
use std::rc::Rc;
use url::Url;
@ -24,7 +25,6 @@ fn make_server(message: &'static [u8]) -> (Listening, Url) {
(server, url)
}
#[test]
fn test_fetch_response_is_not_network_error() {