Crate entity_tag[−][src]
Entity Tag
This crate provides a EntityTag
structure and functions to deal with the ETag header field of HTTP.
Examples
extern crate entity_tag; use entity_tag::EntityTag; let etag1 = EntityTag::with_str(true, "foo").unwrap(); let etag2 = EntityTag::from_str("\"foo\"").unwrap(); assert_eq!(true, etag1.weak); assert_eq!(false, etag2.weak); assert!(etag1.weak_eq(&etag2)); assert!(etag1.strong_ne(&etag2));
No Std
Disable the default features to compile this crate without std.
[dependencies.entity-tag]
version = "*"
default-features = false
Structs
EntityTag | An entity tag, defined in RFC7232. |
Enums
EntityTagError | Possible errors of |