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-urlencoded parameters
  • 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]

The value type associated with this key type.

impl<'a, 'b> Plugin<Request<'a, 'b>> for Params
[src]

The error type associated with this plugin.

Create the plugin from an instance of the extended type. Read more