iron_inspect

Crates.ioiron_inspect
lib.rsiron_inspect
version0.2.1
sourcesrc
created_at2017-10-16 08:59:47.712913
updated_at2018-05-25 01:10:23.611592
descriptionInspect the result of Iron
homepage
repositoryhttps://github.com/KeenS/iron_inspect
max_upload_size
id35848
size5,440
Îșeen (KeenS)

documentation

http://docs.rs/iron_inspect

README

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

Commit count: 6

cargo fmt