Available on crate feature
server only.Expand description
Server middleware utilities.
Structs§
- FromFn
Serviceimplementation fromFromFnLayer- From
FnLayer - A
Layerfrom an async function - MapResponse
Serviceimplementation fromMapResponseLayer- MapResponse
Layer - A
Layerfor mapping a response - Next
- Wrapper for inner
Service
Functions§
- from_fn
- Create a middleware from an async function
- map_
response - Create a middleware for mapping a response from an async function