Struct headers::AccessControlExposeHeaders
source · pub struct AccessControlExposeHeaders(FlatCsv);
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>();
Tuple Fields§
§0: FlatCsv
Implementations§
source§impl AccessControlExposeHeaders
impl AccessControlExposeHeaders
sourcepub fn iter<'a>(&'a self) -> impl Iterator<Item = HeaderName> + 'a
pub fn iter<'a>(&'a self) -> impl Iterator<Item = HeaderName> + 'a
Returns an iterator over HeaderName
s contained within.
Trait Implementations§
source§impl Clone for AccessControlExposeHeaders
impl Clone for AccessControlExposeHeaders
source§fn clone(&self) -> AccessControlExposeHeaders
fn clone(&self) -> AccessControlExposeHeaders
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccessControlExposeHeaders
impl Debug for AccessControlExposeHeaders
source§impl FromIterator<HeaderName> for AccessControlExposeHeaders
impl FromIterator<HeaderName> for AccessControlExposeHeaders
source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = HeaderName>,
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl !Freeze for AccessControlExposeHeaders
impl RefUnwindSafe for AccessControlExposeHeaders
impl Send for AccessControlExposeHeaders
impl Sync for AccessControlExposeHeaders
impl Unpin for AccessControlExposeHeaders
impl UnwindSafe for AccessControlExposeHeaders
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)