File tree 2 files changed +20
-0
lines changed
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;
30
30
pub use self :: etag:: ETag ;
31
31
pub use self :: expect:: Expect ;
32
32
pub use self :: expires:: Expires ;
33
+ pub use self :: from:: From ;
33
34
pub use self :: host:: Host ;
34
35
pub use self :: if_match:: IfMatch ;
35
36
pub use self :: if_modified_since:: IfModifiedSince ;
@@ -330,6 +331,7 @@ mod date;
330
331
mod etag;
331
332
mod expect;
332
333
mod expires;
334
+ mod from;
333
335
mod host;
334
336
mod if_match;
335
337
mod if_modified_since;
You can’t perform that action at this time.
0 commit comments