Struct headers::AccessControlAllowMethods [−][src]
pub struct AccessControlAllowMethods(_);
Expand description
Access-Control-Allow-Methods
header, part of
CORS
The Access-Control-Allow-Methods
header indicates, as part of the
response to a preflight request, which methods can be used during the
actual request.
ABNF
Access-Control-Allow-Methods: "Access-Control-Allow-Methods" ":" #Method
Example values
PUT, DELETE, XMODIFY
Examples
extern crate http;
use http::Method;
use headers::AccessControlAllowMethods;
let allow_methods = vec![Method::GET, Method::PUT]
.into_iter()
.collect::<AccessControlAllowMethods>();
Implementations
Trait Implementations
Creates a value from an iterator. Read more
The name of this header.
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 AccessControlAllowMethods
impl Send for AccessControlAllowMethods
impl Sync for AccessControlAllowMethods
impl Unpin for AccessControlAllowMethods
impl UnwindSafe for AccessControlAllowMethods
Blanket Implementations
Mutably borrows from an owned value. Read more