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

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 Clone for Date
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Date
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Date
[src]

[src]

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

[src]

This method tests for !=.

impl Deref for Date
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for Date
[src]

[src]

Mutably dereferences the value.

impl Header for Date
[src]

[src]

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

[src]

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

impl HeaderFormat for Date
[src]

[src]

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

impl Display for Date
[src]

[src]

Formats the value using the given formatter. Read more