File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ header ! {
2+ #[ doc="`From` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.1)" ]
3+ #[ doc="" ]
4+ #[ doc="The `From` header field contains an Internet email address for a" ]
5+ #[ doc="human user who controls the requesting user agent. The address ought" ]
6+ #[ doc="to be machine-usable." ]
7+ #[ doc="# ABNF" ]
8+ #[ doc="```plain" ]
9+ #[ doc="From = mailbox" ]
10+ #[ doc="mailbox = <mailbox, see [RFC5322], Section 3.4>" ]
11+ #[ doc="```" ]
12+ // FIXME: Maybe use mailbox?
13+ ( From , "From" ) => [ String ]
14+
15+ test_from {
16+ test_header!
( test1
, vec!
[ b"[email protected] " ] ) ; 17+ }
18+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ pub use self::date::Date;
3030pub use self :: etag:: ETag ;
3131pub use self :: expect:: Expect ;
3232pub use self :: expires:: Expires ;
33+ pub use self :: from:: From ;
3334pub use self :: host:: Host ;
3435pub use self :: if_match:: IfMatch ;
3536pub use self :: if_modified_since:: IfModifiedSince ;
@@ -330,6 +331,7 @@ mod date;
330331mod etag;
331332mod expect;
332333mod expires;
334+ mod from;
333335mod host;
334336mod if_match;
335337mod if_modified_since;
You can’t perform that action at this time.
0 commit comments