Struct reep_optionparser_urlencoded::DefaultOptionParser
[−]
[src]
pub struct DefaultOptionParser;
a default implementation, using the urlencoded cargo package to parse options
(into a HashMap
Trait Implementations
impl Key for DefaultOptionParser
[src]
impl ParserMiddleware for DefaultOptionParser
[src]
fn parse(&self, req: &mut Request) -> IronResult<Self::Value>
called befor handing a endpoint with a Body/Options not that the id in the url is expected to be percent_encoded and will be decoded to utf-8 before being passed to parse. Illegal UTF-8 encodings will be replaced with U+FFFD (see url::percent_encoding::lossy_utf8_percent_decode) NOTE: in future version lossy decoding might be replaced with a more strict decoding Never relay on the fact thats lossy decoded Read more