Safe HaskellNone

Ketchup.Routing

Synopsis

Documentation

type Route = Socket → HTTPRequest → (ByteString → Maybe ByteString) → IO ()

route

Arguments

∷ [(ByteString, Route)]

Routes

Handler 

Router function Takes a list of routes and iterates through them for every requeust

useHandlerHandlerRoute

Wrap a handler in a route Lets you use a handler (no parameters) as a route