pub struct SecurityHeadersLayer;Expand description
Tower layer that adds conservative API security headers to responses.
This layer only mutates response headers after the inner service returns. It does not perform authentication, CORS, CSRF, or content-security-policy enforcement.
Trait Implementations§
Source§impl Clone for SecurityHeadersLayer
impl Clone for SecurityHeadersLayer
Source§fn clone(&self) -> SecurityHeadersLayer
fn clone(&self) -> SecurityHeadersLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SecurityHeadersLayer
Source§impl Debug for SecurityHeadersLayer
impl Debug for SecurityHeadersLayer
Source§impl Default for SecurityHeadersLayer
impl Default for SecurityHeadersLayer
Source§fn default() -> SecurityHeadersLayer
fn default() -> SecurityHeadersLayer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SecurityHeadersLayer
impl RefUnwindSafe for SecurityHeadersLayer
impl Send for SecurityHeadersLayer
impl Sync for SecurityHeadersLayer
impl Unpin for SecurityHeadersLayer
impl UnsafeUnpin for SecurityHeadersLayer
impl UnwindSafe for SecurityHeadersLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more