aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch/request.rs
diff options
context:
space:
mode:
authorTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-12-18 20:36:20 +0900
committerTetsuharu OHZEKI <saneyuki.snyk@gmail.com>2014-12-19 00:47:09 +0900
commit07b1c0e6520c27e578fcc569cefc135924517d77 (patch)
tree921c9cd2f70ab9aac89d5cee2e7de64e2b958aa9 /components/net/fetch/request.rs
parentd7f38a8973c1baac2a68bd83a0c141deef920bac (diff)
downloadservo-07b1c0e6520c27e578fcc569cefc135924517d77.tar.gz
servo-07b1c0e6520c27e578fcc569cefc135924517d77.zip
net: Remove glob imports added in #4405
Diffstat (limited to 'components/net/fetch/request.rs')
-rw-r--r--components/net/fetch/request.rs16
1 files changed, 5 insertions, 11 deletions
diff --git a/components/net/fetch/request.rs b/components/net/fetch/request.rs
index 9265cc540ee..4e4139f1f7f 100644
--- a/components/net/fetch/request.rs
+++ b/components/net/fetch/request.rs
@@ -2,12 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use self::ContextFrameType::*;
-use self::CredentialsMode::*;
-use self::Referer::*;
-use self::RequestMode::*;
-use self::ResponseTainting::*;
-
use url::Url;
use hyper::method::{Get, Method};
use hyper::mime::{Mime, Text, Html, Charset, Utf8};
@@ -101,19 +95,19 @@ impl Request {
preserve_content_codings: false,
skip_service_worker: false,
context: context,
- context_frame_type: ContextNone,
+ context_frame_type: ContextFrameType::ContextNone,
origin: None,
force_origin_header: false,
same_origin_data: false,
- referer: Client,
+ referer: Referer::Client,
authentication: false,
sync: false,
- mode: NoCORS,
- credentials_mode: Omit,
+ mode: RequestMode::NoCORS,
+ credentials_mode: CredentialsMode::Omit,
use_url_credentials: false,
manual_redirect: false,
redirect_count: 0,
- response_tainting: Basic,
+ response_tainting: ResponseTainting::Basic,
cache: None
}
}