Struct hyper::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 Deref for LastModified

type Target = HttpDate

fn deref(&self) -> &HttpDate

impl DerefMut for LastModified

fn deref_mut(&mut self) -> &mut HttpDate

impl Header for LastModified

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Result<Self>

impl HeaderFormat for LastModified

fn fmt_header(&self, f: &mut Formatter) -> Result

impl Display for LastModified

fn fmt(&self, f: &mut Formatter) -> Result

impl Serialize for LastModified

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

impl Deserialize for LastModified

fn deserialize<D>(deserializer: &mut D) -> Result<LastModified, D::Error> where D: Deserializer

Derived Implementations

impl PartialEq for LastModified

fn eq(&self, __arg_0: &LastModified) -> bool

fn ne(&self, __arg_0: &LastModified) -> bool

impl Debug for LastModified

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for LastModified

fn clone(&self) -> LastModified

1.0.0fn clone_from(&mut self, source: &Self)