Struct reqwest::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

  • Tue, 15 Nov 1994 08:12:31 GMT

Example

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

Trait Implementations

impl Display for Date

impl Debug for Date

Formats the value using the given formatter.

impl PartialEq<Date> 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 Clone for Date

impl DerefMut for Date

impl HeaderFormat for Date

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

impl Deref for Date