Safe Haskell | None |
---|
- rewrite :: ([Text] -> RequestHeaders -> IO [Text]) -> Middleware
- rewritePure :: ([Text] -> RequestHeaders -> [Text]) -> Middleware
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: