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.