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 Deref for Date

type Target = HttpDate

fn deref(&self) -> &HttpDate

impl DerefMut for Date

fn deref_mut(&mut self) -> &mut HttpDate

impl Header for Date

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Result<Self>

impl HeaderFormat for Date

fn fmt_header(&self, f: &mut Formatter) -> Result

impl Display for Date

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for Date

fn eq(&self, __arg_0: &Date) -> bool

fn ne(&self, __arg_0: &Date) -> bool

impl Debug for Date

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Date

fn clone(&self) -> Date

fn clone_from(&mut self, source: &Self)