pub struct AccessControlAllowHeaders(FlatCsv);
Expand description
Access-Control-Allow-Headers
header, part of
CORS
The Access-Control-Allow-Headers
header indicates, as part of the
response to a preflight request, which header field names can be used
during the actual request.
§ABNF
Access-Control-Allow-Headers: "Access-Control-Allow-Headers" ":" #field-name
§Example values
accept-language, date
§Examples
extern crate http;
use http::header::{CACHE_CONTROL, CONTENT_TYPE};
use headers::AccessControlAllowHeaders;
let allow_headers = vec![CACHE_CONTROL, CONTENT_TYPE]
.into_iter()
.collect::<AccessControlAllowHeaders>();
Tuple Fields§
§0: FlatCsv
Implementations§
source§impl AccessControlAllowHeaders
impl AccessControlAllowHeaders
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 AccessControlAllowHeaders
impl Clone for AccessControlAllowHeaders
source§fn clone(&self) -> AccessControlAllowHeaders
fn clone(&self) -> AccessControlAllowHeaders
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 AccessControlAllowHeaders
impl Debug for AccessControlAllowHeaders
source§impl FromIterator<HeaderName> for AccessControlAllowHeaders
impl FromIterator<HeaderName> for AccessControlAllowHeaders
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
source§impl Header for AccessControlAllowHeaders
impl Header for AccessControlAllowHeaders
source§impl PartialEq for AccessControlAllowHeaders
impl PartialEq for AccessControlAllowHeaders
source§fn eq(&self, other: &AccessControlAllowHeaders) -> bool
fn eq(&self, other: &AccessControlAllowHeaders) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AccessControlAllowHeaders
Auto Trait Implementations§
impl !Freeze for AccessControlAllowHeaders
impl RefUnwindSafe for AccessControlAllowHeaders
impl Send for AccessControlAllowHeaders
impl Sync for AccessControlAllowHeaders
impl Unpin for AccessControlAllowHeaders
impl UnwindSafe for AccessControlAllowHeaders
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