aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/net/fetch/request.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/net/fetch/request.rs')
-rw-r--r--src/components/net/fetch/request.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/net/fetch/request.rs b/src/components/net/fetch/request.rs
index 2dfd5572a97..bd5d87b7950 100644
--- a/src/components/net/fetch/request.rs
+++ b/src/components/net/fetch/request.rs
@@ -5,6 +5,7 @@
use url::Url;
use http::method::{Get, Method};
use http::headers::request::HeaderCollection;
+use fetch::cors_cache::CORSCache;
use fetch::response::Response;
/// A [request context](http://fetch.spec.whatwg.org/#concept-request-context)
@@ -77,7 +78,8 @@ pub struct Request {
pub use_url_credentials: bool,
pub manual_redirect: bool,
pub redirect_count: uint,
- pub response_tainting: ResponseTainting
+ pub response_tainting: ResponseTainting,
+ pub cache: Option<Box<CORSCache>>
}
impl Request {
@@ -103,7 +105,8 @@ impl Request {
use_url_credentials: false,
manual_redirect: false,
redirect_count: 0,
- response_tainting: Basic
+ response_tainting: Basic,
+ cache: None
}
}