Enum http_types::cache::ClearDirective
source · pub enum ClearDirective {
Cache,
Cookies,
Storage,
ExecutionContexts,
}
Expand description
An HTTP Clear-Site-Data
directive.
Variants§
Cache
Indicates that the server wishes to remove locally cached data (i.e. the browser cache, see HTTP caching) for the origin of the response URL. Depending on the browser, this might also clear out things like pre-rendered pages, script caches, WebGL shader caches, or address bar suggestions.
Cookies
Indicates that the server wishes to remove all cookies for the origin of the response URL. HTTP authentication credentials are also cleared out. This affects the entire registered domain, including subdomains. So https://example.com as well as https://stage.example.com, will have cookies cleared.
Storage
Indicates that the server wishes to remove all DOM storage for the origin of the response URL.
ExecutionContexts
Indicates that the server wishes to reload all browsing contexts for the origin of the response (Location.reload).
Implementations§
Trait Implementations§
source§impl Clone for ClearDirective
impl Clone for ClearDirective
source§fn clone(&self) -> ClearDirective
fn clone(&self) -> ClearDirective
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClearDirective
impl Debug for ClearDirective
source§impl Display for ClearDirective
impl Display for ClearDirective
source§impl FromStr for ClearDirective
impl FromStr for ClearDirective
source§impl Hash for ClearDirective
impl Hash for ClearDirective
source§impl PartialEq<ClearDirective> for ClearDirective
impl PartialEq<ClearDirective> for ClearDirective
source§fn eq(&self, other: &ClearDirective) -> bool
fn eq(&self, other: &ClearDirective) -> bool
self
and other
values to be equal, and is used
by ==
.