Expand description
Defines types for Middleware, a reusable unit of logic that can apply to a group of requests
by being added to the Pipeline in a Router.
Modules§
- chain
- Defines the types for connecting multiple middleware into a “chain” when forming a pipeline.
- cookie
- Defines a cookie parsing middleware to be attach cookies on requests.
- logger
- Middlewares for the Gotham framework to log on requests made to the server.
- security
- Security based middleware to handle security based sanitizations.
- state
- State driven middleware to enable attachment of values to request state.
- timer
- Request timing middleware, used to measure response times of requests.
Traits§
- Middleware
Middlewarehas the opportunity to provide additional behaviour to theRequest/Responseinteraction. For example:- NewMiddleware
- A type which is used to spawn new
Middlewarevalues. When implementing aMiddleware, this defines how instances of theMiddlewareare created.