MultipartBody

Trait MultipartBody 

Source
pub trait MultipartBody<'mw, 'server> {
    // Required method
    fn multipart_body(
        &mut self,
    ) -> Option<Multipart<&mut HyperRequest<'mw, 'server>>>;
}
Expand description

Extension trait for getting the multipart/form-data body from nickel::Request.

Implemented for nickel::Request.

Required Methods§

Source

fn multipart_body( &mut self, ) -> Option<Multipart<&mut HyperRequest<'mw, 'server>>>

Get a multipart reader for the request body, if the request is of the right type.

Implementors§

Source§

impl<'mw, 'server, D: 'mw> MultipartBody<'mw, 'server> for NickelRequest<'mw, 'server, D>