di-wai-0.2: Di logging for WAI requests and responses
Safe HaskellSafe-Inferred
LanguageGHC2021

Di.Wai

Description

This module is designed to be imported as follows:

import qualified Di.Wai
Synopsis

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.