Struct trillium_http_types::cache::ClearSiteData [−][src]
pub struct ClearSiteData { /* fields omitted */ }Expand description
Clear browsing data (cookies, storage, cache) associated with the requesting website.
Specifications
Examples
use http_types::Response; use http_types::cache::{ClearSiteData, ClearDirective}; let mut entries = ClearSiteData::new(); entries.push(ClearDirective::Cache); entries.push(ClearDirective::Cookies); let mut res = Response::new(200); res.insert_header(&entries, &entries); let entries = ClearSiteData::from_headers(res)?.unwrap(); let mut entries = entries.iter(); assert_eq!(entries.next().unwrap(), &ClearDirective::Cache); assert_eq!(entries.next().unwrap(), &ClearDirective::Cookies);
Implementations
Create a new instance from headers.
Push a directive into the list of entries.
Set the wildcard directive.
Trait Implementations
Access the header’s name.
Access the header’s value.
Auto Trait Implementations
impl RefUnwindSafe for ClearSiteDataimpl Send for ClearSiteDataimpl Sync for ClearSiteDataimpl Unpin for ClearSiteDataimpl UnwindSafe for ClearSiteData