typed_headers/impls/allow.rs
1use http::header::ALLOW;
2
3use http::Method;
4
5header! {
6 /// `Allow` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.4.1)
7 ///
8 /// The `Allow` header field lists the set of methods advertised as
9 /// supported by the target resource. The purpose of this field is
10 /// strictly to inform the recipient of valid request methods associated
11 /// with the resource.
12 ///
13 /// # ABNF
14 ///
15 /// ```text
16 /// Allow = #method
17 /// ```
18 ///
19 /// # Example values
20 /// * `GET, HEAD, PUT`
21 /// * `OPTIONS, GET, PUT, POST, DELETE, HEAD, TRACE, CONNECT, PATCH, fOObAr`
22 /// * ``
23 (Allow, ALLOW) => (Method)*
24}