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 more