rust-cache-control

Rust crate to parse the HTTP Cache-Control header.

```rust use cache_control::{Cachability, CacheControl}; use std::time::Duration;

let cachecontrol = CacheControl::fromheader("Cache-Control: public, max-age=60").unwrap(); asserteq!(cachecontrol.cachability, Some(Cachability::Public)); asserteq!(cachecontrol.maxage, Some(Duration::fromsecs(60))); ```