wai-route-0.1.2: Minimalistic, efficient routing for WAI

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Route

Synopsis

Documentation

type Handler m Source

Arguments

 = [(ByteString, ByteString)]

The captured path parameters.

-> Request

The matched Request.

-> m Response 

route :: Monad m => [(ByteString, Handler m)] -> Request -> m Response Source

Routes requests to Handlers according to a routing table.