pub struct DefaultOptionParser;
Expand description
a default implementation, using the urlencoded cargo package to parse options
(into a HashMap<String, Vec
Trait Implementations§
Source§impl Key for DefaultOptionParser
impl Key for DefaultOptionParser
Source§impl ParserMiddleware for DefaultOptionParser
impl ParserMiddleware for DefaultOptionParser
Source§fn parse(&self, req: &mut Request<'_, '_>) -> IronResult<Self::Value>
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
impl OptionParser for DefaultOptionParser
Auto Trait Implementations§
impl Freeze for DefaultOptionParser
impl RefUnwindSafe for DefaultOptionParser
impl Send for DefaultOptionParser
impl Sync for DefaultOptionParser
impl Unpin for DefaultOptionParser
impl UnwindSafe for DefaultOptionParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> PersistentInto<Arc<Mutex<T>>> for T
impl<T> PersistentInto<Arc<Mutex<T>>> for T
Source§fn persistent_into(self) -> Arc<Mutex<T>>
fn persistent_into(self) -> Arc<Mutex<T>>
Convert
self
into a value of type T
.Source§impl<T> PersistentInto<Arc<RwLock<T>>> for T
impl<T> PersistentInto<Arc<RwLock<T>>> for T
Source§fn persistent_into(self) -> Arc<RwLock<T>>
fn persistent_into(self) -> Arc<RwLock<T>>
Convert
self
into a value of type T
.Source§impl<T> PersistentInto<Arc<T>> for T
impl<T> PersistentInto<Arc<T>> for T
Source§fn persistent_into(self) -> Arc<T>
fn persistent_into(self) -> Arc<T>
Convert
self
into a value of type T
.Source§impl<T> PersistentInto<T> for T
impl<T> PersistentInto<T> for T
Source§fn persistent_into(self) -> T
fn persistent_into(self) -> T
Convert
self
into a value of type T
.