https://github.com/doumanash/etag-rs
Simple ETag calculation.
https://github.com/doumanash/etag-rs
etag http http-header
Last synced: 2 months ago
JSON representation
Simple ETag calculation.
- Host: GitHub
- URL: https://github.com/doumanash/etag-rs
- Owner: DoumanAsh
- License: bsl-1.0
- Created: 2017-03-15T15:53:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T03:40:49.000Z (over 2 years ago)
- Last Synced: 2024-05-02T00:10:01.217Z (about 1 year ago)
- Topics: etag, http, http-header
- Language: Rust
- Homepage: https://docs.rs/etag
- Size: 24.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
etag-rs
====================
[](https://crates.io/crates/etag)
[](https://docs.rs/etag)Simple EntityTag implementation.
# Features
- `std` - Add `EntityTag::from_file_meta` in order to generate ETag using file's metadata.
# Usage
```rust
use etag::EntityTag;fn main() {
let my_tag = EntityTag::strong("lolka");
let text_etag = my_tag.to_string();
let parse_tag = text_etag.parse::().unwrap();assert!(my_tag.strong_eq(&parse_tag));
}
```