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

use hyper::header::{Headers, Date};
use std::time::SystemTime;

let mut headers = Headers::new();
headers.set(Date(SystemTime::now().into()));

Trait Implementations

impl Clone for Date
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Date
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Date
[src]

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

This method tests for !=.

impl Deref for Date
[src]

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for Date
[src]

Mutably dereferences the value.

impl Header for Date
[src]

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

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

Format a header to outgoing stream. Read more

impl Display for Date
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Date

impl Sync for Date