pub trait Responder {
    type Body: Into<ResponseBody>;
    type Error: Into<Error>;

    fn respond_to(
        self,
        input: &mut Input<'_>
    ) -> Result<Response<Self::Body>, Self::Error>; }
Expand description

A trait representing the conversion to an HTTP response.

Required Associated Types

The type of message body in the generated HTTP response.

The error type which will be returned from respond_to.

Required Methods

Converts self to an HTTP response.

Implementations on Foreign Types

Implementors