4 releases

Uses old Rust 2015

0.2.1 May 25, 2018
0.2.0 Dec 25, 2017
0.1.2 Dec 25, 2017
0.1.1 Dec 4, 2017
0.1.0 Oct 16, 2017

#23 in #log-error

MIT/Apache

5KB
94 lines

Inspect the result of iron like below

let mut chain = Chain::new(handler);
chain.link_after(Inspect::new(|_req, res| match res {
    Ok(r) => println!("ok: {:?}", r),
    Err(e) => println!("err: {:?}", e),
}));
chain.link_after(Inspect::response(
    |_req, res| println!("response: {:?}", res),
));

chain.link_after(Inspect::error(|_req, err| println!("error: {:?}", err)));

Documentation

docs.rs

Dependencies

~4.5MB
~114K SLoC