Struct salvo::http::headers::AccessControlRequestHeaders [−][src]
pub struct AccessControlRequestHeaders(_);
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
Returns an iterator over HeaderName
s contained within.
Trait Implementations
pub fn from_iter<I>(iter: I) -> AccessControlRequestHeaders where
I: IntoIterator<Item = HeaderName>,
pub fn from_iter<I>(iter: I) -> AccessControlRequestHeaders 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<AccessControlRequestHeaders, Error> where
I: Iterator<Item = &'i HeaderValue>,
pub fn decode<'i, I>(
values: &mut I
) -> Result<AccessControlRequestHeaders, Error> where
I: Iterator<Item = &'i HeaderValue>,
Decode this type from an iterator of HeaderValue
s.
Auto Trait Implementations
impl RefUnwindSafe for AccessControlRequestHeaders
impl Send for AccessControlRequestHeaders
impl Sync for AccessControlRequestHeaders
impl Unpin for AccessControlRequestHeaders
impl UnwindSafe for AccessControlRequestHeaders
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