[][src]Module tophat::server::router

Very Basic router

  • basic routing (no nesting)
  • holds global data
  • no extractors (you've got to find all the stuff you want attached to the Request)

Structs

Data

Data type for wrapping data for access within an endpoint

Router

A minimal router

RouterBuilder

Build a router

Traits

Endpoint

A trait for all endpoints, so that the user can just use any suitable closure or fn in the method for building a router.

RouterRequestExt

Trait for convenience methods on a Request, which will allow for retrieving Data and params.

Type Definitions

Params

Convenience type for params.