[][src]Struct content_security_policy::CspList

pub struct CspList(pub Vec<Policy>);

Methods

impl CspList[src]

pub fn contains_a_header_delivered_content_security_policy(&self) -> bool[src]

pub fn parse(
    list: &str,
    source: PolicySource,
    disposition: PolicyDisposition
) -> CspList
[src]

pub fn append(&mut self, other: CspList)[src]

pub fn push(&mut self, policy: Policy)[src]

pub fn report_violations_for_request(&self, request: &Request) -> Vec<Violation>[src]

Given a request, this algorithm reports violations based on client’s "report only" policies.

pub fn should_request_be_blocked(
    &self,
    request: &Request
) -> (CheckResult, Vec<Violation>)
[src]

Given a request, this algorithm returns Blocked or Allowed and reports violations based on request’s client’s Content Security Policy.

pub fn should_response_to_request_be_blocked(
    &self,
    request: &Request,
    response: &Response
) -> (CheckResult, Vec<Violation>)
[src]

Given a response and a request, this algorithm returns Blocked or Allowed, and reports violations based on request’s client’s Content Security Policy.

pub fn should_elements_inline_type_behavior_be_blocked(
    &self,
    element: &Element,
    type_: InlineCheckType,
    source: &str
) -> (CheckResult, Vec<Violation>)
[src]

Trait Implementations

impl Clone for CspList[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CspList[src]

Auto Trait Implementations

impl Send for CspList

impl Sync for CspList

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.