[][src]Trait multipart::server::hyper::MultipartHandler

pub trait MultipartHandler: Send + Sync {
    pub fn handle_multipart<'a, 'k>(
        &self,
        multipart: Multipart<Request<'a, 'k>>,
        response: Response<'a, Fresh>
    ); }

A trait defining a type that can handle an incoming multipart request.

Extends to closures of the type Fn(Multipart<Request>, Response<Fresh>), and subsequently static functions.

Required methods

pub fn handle_multipart<'a, 'k>(
    &self,
    multipart: Multipart<Request<'a, 'k>>,
    response: Response<'a, Fresh>
)
[src]

Generate a response from this multipart request.

Loading content...

Implementors

impl<F> MultipartHandler for F where
    F: Fn(Multipart<Request<'_, '_>>, Response<'_, Fresh>),
    F: Send + Sync
[src]

Loading content...