Struct viz::prelude::http::headers::AccessControlAllowHeaders [−][src]
pub struct AccessControlAllowHeaders(_);
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>();
Implementations
Returns an iterator over HeaderName
s contained within.
Trait Implementations
pub fn from_iter<I>(iter: I) -> AccessControlAllowHeaders where
I: IntoIterator<Item = HeaderName>,
pub fn from_iter<I>(iter: I) -> AccessControlAllowHeaders 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<AccessControlAllowHeaders, Error> where
I: Iterator<Item = &'i HeaderValue>,
pub fn decode<'i, I>(values: &mut I) -> Result<AccessControlAllowHeaders, Error> where
I: Iterator<Item = &'i HeaderValue>,
Decode this type from an iterator of HeaderValue
s.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AccessControlAllowHeaders
impl Send for AccessControlAllowHeaders
impl Sync for AccessControlAllowHeaders
impl Unpin for AccessControlAllowHeaders
impl UnwindSafe for AccessControlAllowHeaders
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn vzip(self) -> V
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more