Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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));
}
```