pub struct XPoweredBy(/* private fields */);Expand description
Manages X-Powered-By header
ntex does not set X-Powered-By header by default.
Instead of silencing the header, Helmet allows you to set it to a custom value.
This can be useful against primitive fingerprinting.
§Examples
use helmet_core::XPoweredBy;
let x_powered_by = XPoweredBy::new("PHP 4.2.0");Implementations§
Trait Implementations§
Source§impl Clone for XPoweredBy
impl Clone for XPoweredBy
Source§fn clone(&self) -> XPoweredBy
fn clone(&self) -> XPoweredBy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Display for XPoweredBy
impl Display for XPoweredBy
Auto Trait Implementations§
impl Freeze for XPoweredBy
impl RefUnwindSafe for XPoweredBy
impl Send for XPoweredBy
impl Sync for XPoweredBy
impl Unpin for XPoweredBy
impl UnwindSafe for XPoweredBy
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