Struct headers::AccessControlRequestHeaders
source · pub struct AccessControlRequestHeaders(/* private fields */);
Expand description
Access-Control-Request-Headers
header, part of
CORS
The Access-Control-Request-Headers
header indicates which headers will
be used in the actual request as part of the preflight request.
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::{ACCEPT_LANGUAGE, DATE};
use headers::AccessControlRequestHeaders;
let req_headers = vec![ACCEPT_LANGUAGE, DATE]
.into_iter()
.collect::<AccessControlRequestHeaders>();
Implementations§
source§impl AccessControlRequestHeaders
impl AccessControlRequestHeaders
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 AccessControlRequestHeaders
impl Clone for AccessControlRequestHeaders
source§fn clone(&self) -> AccessControlRequestHeaders
fn clone(&self) -> AccessControlRequestHeaders
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 AccessControlRequestHeaders
impl Debug for AccessControlRequestHeaders
source§impl FromIterator<HeaderName> for AccessControlRequestHeaders
impl FromIterator<HeaderName> for AccessControlRequestHeaders
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 AccessControlRequestHeaders
impl RefUnwindSafe for AccessControlRequestHeaders
impl Send for AccessControlRequestHeaders
impl Sync for AccessControlRequestHeaders
impl Unpin for AccessControlRequestHeaders
impl UnwindSafe for AccessControlRequestHeaders
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)