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
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())));
Trait Implementations
impl Clone for Date
[src]
fn clone(&self) -> Date
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Date
[src]
impl PartialEq for Date
[src]
fn eq(&self, __arg_0: &Date) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Date) -> bool
This method tests for !=
.
impl Deref for Date
[src]
type Target = HttpDate
The resulting type after dereferencing
fn deref(&self) -> &HttpDate
The method called to dereference a value
impl DerefMut for Date
[src]
impl Header for Date
[src]
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &[Vec<u8>]) -> Result<Self>
Parse a header from a raw stream of bytes. Read more
impl HeaderFormat for Date
[src]
fn fmt_header(&self, f: &mut Formatter) -> Result
Format a header to be output into a TcpStream. Read more