Struct tower_http::cors::Vary
source · pub struct Vary(_);
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 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