Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
This module is designed to be imported as follows:
import qualified Di.Wai
Synopsis
- middleware :: MonadIO m => Df1 -> m (Middleware, Request -> Maybe Df1)
Documentation
middleware :: MonadIO m => Df1 -> m (Middleware, Request -> Maybe Df1) Source #
Obtain a Middleware
that will log incomming Request
s
and outgoing Response
s.
do (middleware, lookup) <- Di.Wai.middleware
di