wai-extra-3.0.15.3: Provides some basic WAI handlers and middleware.

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Rewrite

Synopsis

Documentation

rewrite :: ([Text] -> RequestHeaders -> IO [Text]) -> Middleware Source #

rewrite based on your own conversion rules

rewritePure :: ([Text] -> RequestHeaders -> [Text]) -> Middleware Source #

rewrite based on your own conversion rules Example convert function: