Austenite

A library for building Iron handlers that implements HTTP header handling and content negotiation.

A port of Clojure's Liberator library, itself inspired by Erlang's webmachine.

Install

Add austenite = "*" to your Cargo.toml dependencies.

Usage

```rust struct GetOkContent; resource_handler!(GetOkContent);

impl Resource for GetOkContent { fn handleok(&self, req: &Request, resp: &mut Response) -> IronResult { resp.setmut((status::Ok, "hello")); Ok(Response::new()) } }

… Iron::new(Resource).listen((address,0u16)); … ```

License

TBD