Struct hyper::header::Date
[−]
[src]
pub struct Date(pub HttpDate);
Date
header, defined in RFC7231
The Date
header field represents the date and time at which the
message was originated.
ABNF
Date = HTTP-date
Example values
Tue, 15 Nov 1994 08:12:31 GMT
Example
// extern crate time; use hyper::header::{Headers, Date, HttpDate}; use time; let mut headers = Headers::new(); headers.set(Date(HttpDate(time::now())));