Struct poem::web::headers::AccessControlExposeHeaders [−][src]
pub struct AccessControlExposeHeaders(_);
Expand description
Access-Control-Expose-Headers
header, part of
CORS
The Access-Control-Expose-Headers header indicates which headers are safe to expose to the API of a CORS API specification.
ABNF
Access-Control-Expose-Headers = "Access-Control-Expose-Headers" ":" #field-name
Example values
ETag, Content-Length
Examples
extern crate http;
use http::header::{CONTENT_LENGTH, ETAG};
use headers::AccessControlExposeHeaders;
let expose = vec![CONTENT_LENGTH, ETAG]
.into_iter()
.collect::<AccessControlExposeHeaders>();
Implementations
Returns an iterator over HeaderName
s contained within.
Trait Implementations
pub fn from_iter<I>(iter: I) -> AccessControlExposeHeaders where
I: IntoIterator<Item = HeaderName>,
pub fn from_iter<I>(iter: I) -> AccessControlExposeHeaders where
I: IntoIterator<Item = HeaderName>,
Creates a value from an iterator. Read more
The name of this header.
pub fn decode<'i, I>(
values: &mut I
) -> Result<AccessControlExposeHeaders, Error> where
I: Iterator<Item = &'i HeaderValue>,
pub fn decode<'i, I>(
values: &mut I
) -> Result<AccessControlExposeHeaders, Error> where
I: Iterator<Item = &'i HeaderValue>,
Decode this type from an iterator of HeaderValue
s.
Auto Trait Implementations
impl RefUnwindSafe for AccessControlExposeHeaders
impl Send for AccessControlExposeHeaders
impl Sync for AccessControlExposeHeaders
impl Unpin for AccessControlExposeHeaders
impl UnwindSafe for AccessControlExposeHeaders
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more