Struct reqwest::header::LastModified [] [src]

pub struct LastModified(pub HttpDate);

Last-Modified header, defined in RFC7232

The Last-Modified header field in a response provides a timestamp indicating the date and time at which the origin server believes the selected representation was last modified, as determined at the conclusion of handling the request.

ABNF

Expires = HTTP-date

Example values

Example

// extern crate time;
 
use hyper::header::{Headers, LastModified, HttpDate};
use time::{self, Duration};
 
let mut headers = Headers::new();
headers.set(LastModified(HttpDate(time::now() - Duration::days(1))));

Trait Implementations

impl Display for LastModified
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq<LastModified> for LastModified
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Deref for LastModified
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for LastModified
[src]

[src]

Mutably dereferences the value.

impl Debug for LastModified
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for LastModified
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl HeaderFormat for LastModified
[src]

[src]

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

impl Header for LastModified
[src]

[src]

Returns the name of the header field this belongs to. Read more

[src]

Parse a header from a raw stream of bytes. Read more