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: FlatCsvImplementations§
Source§impl AccessControlAllowHeaders
 
impl AccessControlAllowHeaders
Sourcepub fn iter(&self) -> impl Iterator<Item = HeaderName> + '_
 
pub fn iter(&self) -> impl Iterator<Item = HeaderName> + '_
Returns an iterator over HeaderNames contained within.
Trait Implementations§
Source§impl Clone for AccessControlAllowHeaders
 
impl Clone for AccessControlAllowHeaders
Source§fn clone(&self) -> AccessControlAllowHeaders
 
fn clone(&self) -> AccessControlAllowHeaders
Returns a duplicate 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
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