HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulewai-extra-3.1.18Haskell2010

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