pub struct HostAllowlist { /* private fields */ }Expand description
Rejects requests whose HTTP Host or URI authority is not explicitly allowed.
Implementations§
Source§impl HostAllowlist
impl HostAllowlist
pub fn new(hosts: impl IntoIterator<Item = impl Into<String>>) -> Self
Trait Implementations§
Source§impl Clone for HostAllowlist
impl Clone for HostAllowlist
Source§impl Debug for HostAllowlist
impl Debug for HostAllowlist
Auto Trait Implementations§
impl Freeze for HostAllowlist
impl RefUnwindSafe for HostAllowlist
impl Send for HostAllowlist
impl Sync for HostAllowlist
impl Unpin for HostAllowlist
impl UnsafeUnpin for HostAllowlist
impl UnwindSafe for HostAllowlist
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