Struct tower_http::cors::Vary
source · pub struct Vary(/* private fields */);
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)