Ketchup-0.2.2: A super small web framework for those who don't like big and fancy codebases

Safe HaskellNone

Ketchup.Routing

Synopsis

Documentation

routeSource

Arguments

:: [(ByteString, Socket -> HTTPRequest -> Map ByteString ByteString -> IO ())]

Routes

-> Socket -> HTTPRequest -> IO () 

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