pub struct IfModifiedSince(pub HttpDate);
Expand description
If-Modified-Since
header, defined in
RFC7232
The If-Modified-Since
header field makes a GET or HEAD request
method conditional on the selected representation’s modification date
being more recent than the date provided in the field-value.
Transfer of the selected representation’s data is avoided if that
data has not changed.
§ABNF
If-Unmodified-Since = HTTP-date
§Example values
Sat, 29 Oct 1994 19:43:31 GMT
§Example
// extern crate time;
use hyper::header::{Headers, IfModifiedSince, HttpDate};
use time::{self, Duration};
let mut headers = Headers::new();
headers.set(IfModifiedSince(HttpDate(time::now() - Duration::days(1))));
Tuple Fields§
§0: HttpDate
Trait Implementations§
source§impl Clone for IfModifiedSince
impl Clone for IfModifiedSince
source§fn clone(&self) -> IfModifiedSince
fn clone(&self) -> IfModifiedSince
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IfModifiedSince
impl Debug for IfModifiedSince
source§impl Deref for IfModifiedSince
impl Deref for IfModifiedSince
source§impl DerefMut for IfModifiedSince
impl DerefMut for IfModifiedSince
source§impl Display for IfModifiedSince
impl Display for IfModifiedSince
§impl From<IfModifiedSince> for Header<'static>
impl From<IfModifiedSince> for Header<'static>
§fn from(header: IfModifiedSince) -> Header<'static>
fn from(header: IfModifiedSince) -> Header<'static>
Converts to this type from the input type.
source§impl Header for IfModifiedSince
impl Header for IfModifiedSince
source§fn header_name() -> &'static str
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
source§fn parse_header(raw: &[Vec<u8>]) -> Result<IfModifiedSince, Error>
fn parse_header(raw: &[Vec<u8>]) -> Result<IfModifiedSince, Error>
Parse a header from a raw stream of bytes. Read more
source§impl HeaderFormat for IfModifiedSince
impl HeaderFormat for IfModifiedSince
source§impl PartialEq for IfModifiedSince
impl PartialEq for IfModifiedSince
impl StructuralPartialEq for IfModifiedSince
Auto Trait Implementations§
impl Freeze for IfModifiedSince
impl RefUnwindSafe for IfModifiedSince
impl Send for IfModifiedSince
impl Sync for IfModifiedSince
impl Unpin for IfModifiedSince
impl UnwindSafe for IfModifiedSince
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)