Type Definition aitch::BoxedResponse[][src]

type BoxedResponse = Box<Future<Item = Response<BodyStream>, Error = Error> + Send>;

Represents a future returning a HTTP response, with all types erased.

Handlers which return one of many different Responder types (e.g. depending on the HTTP request details) can use this type to return a generic response, with all type variables erased.

To get a BoxedResponse, use the Responder::into_response() trait method.

Example

See BoxedHandler for an example of its use.