[][src]Module swagger::composites

Module for combining hyper services

Use by passing hyper::server::MakeService instances to a CompositeMakeService together with the base path for requests that should be handled by that service.

Structs

CompositeMakeService

Wraps a vector of pairs, each consisting of a base path as a &'static str and a MakeService instance. Implements Deref<Vec> and DerefMut<Vec> so these can be manipulated using standard Vec methods.

CompositeService

Wraps a vector of pairs, each consisting of a base path as a &'static str and a Service instance.

Traits

BoxedMakeService

Trait for wrapping hyper MakeServices to make the return type of make_service uniform. This is necessary in order for the MakeServices with different Instance types to be stored in a single collection.

NotFound

Trait for generating a default "not found" response. Must be implemented on the Response associated type for MakeServices being combined in a CompositeMakeService.