pub struct Date(pub HttpDate);Expand description
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 mco_http::header::{Headers, Date, HttpDate};
use time;
let mut headers = Headers::new();
headers.set(Date(HttpDate(time::now())));Tuple Fields§
§0: HttpDateTrait Implementations§
source§impl HeaderFormat for Date
impl HeaderFormat for Date
source§impl PartialEq for Date
impl PartialEq for Date
impl StructuralPartialEq for Date
Auto Trait Implementations§
impl RefUnwindSafe for Date
impl Send for Date
impl Sync for Date
impl Unpin for Date
impl UnwindSafe for Date
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more