Module gotham::middleware::state[][src]

State driven middleware to enable attachment of values to request state.

This module provides generics to enable attaching (appropriate) values to the state of a request, through the use of Middleware. Middleware can be created via StateMiddleware::with, with the provided value being the value to attach to the request state.

Structs

StateMiddleware

Middleware binding for generic types to enable easy shared state.