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

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 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