docs.rs failed to build urlencoded-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
urlencoded-0.6.0
urlencoded 
URL Encoded middleware for the Iron web framework. Decode URL Encoded data from GET request queries and POST request bodies.
Example
This example shows how to use urlencoded to parse GET request parameters.
extern crate iron;
extern crate urlencoded;
use *;
use status;
use UrlEncodedQuery;
// Test out the server with `curl -i "http://localhost:3000/?name=franklin&name=trevor"`
Overview
urlencoded is a part of Iron's core bundle.
- Parses a URL query string into a
HashMaps that mapsStringrepresentations of keys onto aVecofStringvalues. - Values are stored in a
Vecto ensure that no information is lost if a key appears multiple times. The query stringa=b&a=cwill result in a mapping fromato[b, c]. - Parses POST request bodies for web form data (MIME type:
application/x-www-form-urlencoded).
Installation
If you're using Cargo to manage dependencies, just add urlencoded to Cargo.toml:
[]
= "*"
Otherwise, cargo build, and the rlib will be in your target directory.
Documentation
Along with the online documentation,
you can build a local copy with cargo doc.
Examples
Get Help
One of us (@reem, @zzmp,
@theptrk, @mcreinhard)
is usually on #iron on the mozilla irc. Come say hi and ask any questions you might have.
We are also usually on #rust and #rust-webdev.