HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulewai-extra-3.1.16Haskell2010

Network.Wai.Middleware.Routed

Since 3.0.9

  • 2 values
valueroutedMiddleware
  1. :: ([Text] -> Bool)

    Only use middleware if this pathInfo test returns True

  2. -> Middleware

    middleware to apply the path prefix guard to

  3. -> Middleware

    modified middleware

#

Apply a middleware based on a test of pathInfo

example:

let corsify = routedMiddleWare ("static" `elem`) addCorsHeaders

Since 3.0.9