feat(headers): Add If-None-Match header field

Add the HTTP/1.1 `If-None-Match` header field makes the request method conditional
on a recipient cache or origin server either not having any current
representation of the target resource, when the field-value is "*",
or having a selected representation with an entity-tag that does not
match any of those listed in the field-value.

Closes #238
This commit is contained in:
Fernando Mendez
2015-02-07 15:50:51 -04:00
parent f836ee89c1
commit 318b067a06
2 changed files with 86 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ pub use self::etag::Etag;
pub use self::expires::Expires;
pub use self::host::Host;
pub use self::if_modified_since::IfModifiedSince;
pub use self::if_none_match::IfNoneMatch;
pub use self::if_unmodified_since::IfUnmodifiedSince;
pub use self::last_modified::LastModified;
pub use self::location::Location;
@@ -158,6 +159,7 @@ mod expires;
mod host;
mod last_modified;
mod if_modified_since;
mod if_none_match;
mod if_unmodified_since;
mod location;
mod pragma;