Struct hyper::header::LastModified [−][src]
pub struct LastModified(pub HttpDate);Expand description
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-dateExample values
Sat, 29 Oct 1994 19:43:31 GMT
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))));Tuple Fields
0: HttpDateTrait Implementations
Format a header to be output into a TcpStream. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for LastModified
impl Send for LastModified
impl Sync for LastModified
impl Unpin for LastModified
impl UnwindSafe for LastModified
Blanket Implementations
Mutably borrows from an owned value. Read more