oven

simple cookie middleware for Iron

```rust

extern crate cookie; extern crate oven;

use oven::prelude::*;

fn initializemywebapppls() { // do some things, make an iron::Chain... chain.link(oven::new(SUPERSECRETKEYSTHATLETSBEHONESTYOULLPROBABLYACCIDENTALLYPUTIN_GITHUB)); }

fn handlesomerequests(req: &mut Request) { let foocookie = req.getcookie("foo"); // foo = Option // clients can't tamper with foo- it's signed when set and verified when loaded. // invalid signatures are equivalent to the cookie not existing. let mut resp = Response::new(); resp.setcookie(cookie::Cookie::new("foo", "new and interesting value of foo!")); } ```