aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net_traits/lib.rs')
-rw-r--r--components/net_traits/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/net_traits/lib.rs b/components/net_traits/lib.rs
index 60163bb090a..875bbd106aa 100644
--- a/components/net_traits/lib.rs
+++ b/components/net_traits/lib.rs
@@ -565,6 +565,9 @@ pub struct Metadata {
/// Is successful HTTPS connection
pub https_state: HttpsState,
+
+ /// Referrer Url
+ pub referrer: Option<Url>,
}
impl Metadata {
@@ -578,6 +581,7 @@ impl Metadata {
// https://fetch.spec.whatwg.org/#concept-response-status-message
status: Some(RawStatus(200, "OK".into())),
https_state: HttpsState::None,
+ referrer: None,
}
}