wai-route-0.3.1.1: 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.

-> (Response -> m ResponseReceived)

The continuation.

-> m ResponseReceived 

A Handler is a generalized Application that receives the captured path parameters as its first argument.

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

Routes requests to Handlers according to a routing table.