Struct params::Params
[−]
[src]
pub struct Params;
Plugin for iron::Request that processes and combines request parameters from the various
request sources.
The following sources are merged into a Map:
- JSON data (
Content-Type: application/json) - URL-encoded GET parameters
- URL-encoded
Content-Type: application/x-www-form-urlencodedparameters - Multipart form data (
Content-Type: multipart/form-data)
Use req.get_ref::<Params>() where req is an iron::Request to get a Map of the request's
parameters.
Trait Implementations
impl Key for Params[src]
impl<'a, 'b> Plugin<Request<'a, 'b>> for Params[src]
type Error = ParamsError
The error type associated with this plugin.
fn eval(req: &mut Request) -> Result<Map, ParamsError>
Create the plugin from an instance of the extended type. Read more