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
use hyper::header::{Headers, Date}; use std::time::SystemTime; let mut headers = Headers::new(); headers.set(Date(SystemTime::now().into()));
Trait Implementations
impl Header for Date[src]
fn header_name() -> &'static str[src]
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &Raw) -> Result<Date, Error>[src]
Parse a header from a raw stream of bytes. Read more
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>[src]
Format a header to outgoing stream. Read more
impl Display for Date[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl PartialEq<Date> for Date[src]
fn eq(&self, __arg_0: &Date) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Date) -> bool[src]
This method tests for !=.
impl Deref for Date[src]
type Target = HttpDate
The resulting type after dereferencing.
fn deref(&self) -> &HttpDate[src]
Dereferences the value.
impl Debug for Date[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more