Entity Tag
This crate provides a EntityTag structure and functions to deal with the ETag header field of HTTP.
Examples
use EntityTag;
let etag1 = with_str.unwrap;
let etag2 = from_str.unwrap;
assert_eq!;
assert_eq!;
assert!;
assert!;
let etag3 = from_data;
assert_eq!;
let etag4 = from_data_strong;
assert_eq!;
let etag5 = from_file_meta;
println!; // W/"wMRGbc5gr2L/keSkynH4KQ"
let etag6 = from_file_meta_strong;
println!; // "mmkAoOwMqROVvws3tlxJ9tIInflE3JGuOCn1REERmPo"
No Std
Disable the default features to compile this crate without std.
[]
= "*"
= false
Hashers
Generated ETag constructors are optional. Enable weak-hasher to use XXH3-128 weak ETag generation and strong-hasher to use BLAKE3-256 strong ETag generation.
Crates.io
https://crates.io/crates/entity-tag