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

Safe HaskellNone

Network.Wai.Middleware.Rewrite

Synopsis

Documentation

rewrite :: ([Text] -> RequestHeaders -> IO [Text]) -> MiddlewareSource

rewrite based on your own conversion rules

rewritePure :: ([Text] -> RequestHeaders -> [Text]) -> MiddlewareSource

rewrite based on your own conversion rules Example convert function: