Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doumanash/etag-rs
Simple ETag calculation.
https://github.com/doumanash/etag-rs
etag http http-header
Last synced: 9 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T03:40:49.000Z (almost 2 years ago)
- Last Synced: 2024-05-02T00:10:01.217Z (6 months 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
====================![Build](https://github.com/DoumanAsh/etag-rs/workflows/Rust/badge.svg?branch=master)
[![Crates.io](https://img.shields.io/crates/v/etag.svg)](https://crates.io/crates/etag)
[![Docs.rs](https://docs.rs/etag/badge.svg)](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));
}
```