| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Di.Wai
Description
This module is designed to be imported as follows:
import qualified Di.Wai
Synopsis
- middleware :: Df1 -> Middleware
- middleware' :: Df1 -> (Df1 -> Application) -> Application
Documentation
middleware :: Df1 -> Middleware Source #
Obtain a Middleware that will log incomming Requests
and outgoing Responses through the given Df1.
If your Application needs access to the Df1 uniquely tied
to the current Request, then use middleware' instead.
middleware' :: Df1 -> (Df1 -> Application) -> Application Source #
Like middleware, but it exposes the Df1 that includes Path
data about Request to the underlying Application.