[][src]Enum moxie_dom::interfaces::security::ReferrerPolicy

pub enum ReferrerPolicy {
    NoReferrer,
    NoReferrerWhenDowngrade,
    Origin,
    OriginWhenCrossOrigin,
    SameOrigin,
    StrictOrigin,
    StrictOriginWhenCrossOrigin,
}

Indicates which referrer to send when fetching the frame's resource.

Variants

NoReferrer

The Referer header will not be sent.

NoReferrerWhenDowngrade

The Referer header will not be sent to origins without TLS (HTTPS).

Origin

The sent referrer will be limited to the origin of the referring page: its scheme, host, and port.

OriginWhenCrossOrigin

The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.

SameOrigin

A referrer will be sent for same origin, but cross-origin requests will contain no referrer information.

StrictOrigin

Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS→HTTPS), but don't send it to a less secure destination (HTTPS→HTTP).

StrictOriginWhenCrossOrigin

Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS→HTTPS), and send no header to a less secure destination (HTTPS→HTTP).

Trait Implementations

impl Display for ReferrerPolicy[src]

Auto Trait Implementations

impl RefUnwindSafe for ReferrerPolicy

impl Send for ReferrerPolicy

impl Sync for ReferrerPolicy

impl Unpin for ReferrerPolicy

impl UnwindSafe for ReferrerPolicy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.