pub struct Vary(/* private fields */);
Available on crate feature
cors
only.Expand description
Holds configuration for how to set the Vary
header.
See CorsLayer::vary
for more details.
Implementations§
Source§impl Vary
impl Vary
Sourcepub fn list<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
pub fn list<I>(headers: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
Set the list of header names to return as vary header values
See CorsLayer::vary
for more details.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vary
impl RefUnwindSafe for Vary
impl Send for Vary
impl Sync for Vary
impl Unpin for Vary
impl UnwindSafe for Vary
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