Struct edge::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<Date, Error>

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

impl Display for Date

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

Derived Implementations

impl PartialEq<Date> 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<(), Error>

impl Clone for Date

fn clone(&self) -> Date

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