2 unstable releases
Uses old Rust 2015
0.2.0 | Sep 12, 2016 |
---|---|
0.1.0 | Oct 9, 2015 |
#77 in #iron
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
~149K SLoC