Struct iron::headers::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

Example

// extern crate time;
 
use hyper::header::{Headers, Date, HttpDate};
use time;
 
let mut headers = Headers::new();
headers.set(Date(HttpDate(time::now())));

Trait Implementations

impl PartialEq<Date> for Date

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Date

Formats the value using the given formatter.

impl Clone for Date

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Deref for Date

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for Date

impl Header for Date

Returns the name of the header field this belongs to. Read more

Parse a header from a raw stream of bytes. Read more

impl HeaderFormat for Date

Format a header to be output into a TcpStream. Read more

impl Display for Date

Formats the value using the given formatter.