#deprecated #iron #plugin #reep #json #bodyparser #body-parser

deprecated reep-bodyparser-rustcdecodable

[deprecated] impl. for reep::types::BodyParser using the iron (json)bodyparser plugin

2 unstable releases

Uses old Rust 2015

0.2.0 Sep 12, 2016
0.1.0 Oct 9, 2015

#77 in #iron

MIT/Apache

7KB
58 lines

Deprecation / Change Note

With deprecating it I also updated it to support a newer iron version, but because in the updated version rustc-decodable is no longer usable in the given way serde was used instead. Even through this crate still has rustcdecodable in the name... :=(

REEP Bodyparser (reep-bodyparser-rustcdecodable) [deprecated]

A bodyparser implementation for REEP using the rustcdecodable trait

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

A generic implementation of reep::types::BodyParser using the serde Deserialize interface from the iron bodyparser core bundle plugin

Schematic Example

let body_parser = SerdBodyParser::<DeserializeStructImplRessource>::new();
let ep = ResourceEndpointBuilder::new(option_parser, body_parser)
    .create(aHandler)
    /*...*/
    .finalize();
app.mount("/users", ep)

Dependencies

~6.5MB
~148K SLoC