respond-1.1.0: process and route HTTP requests and generate responses on top of WAI

Safe HaskellNone



Provides a runner for a Warp server to run an app with some hopefully sensible middleware (such as request logging).



runWaiApp :: Port -> LoggerSet -> Application -> IO () Source

sets up the app using prepApp then uses run to run it.

prepApp :: LoggerSet -> Application -> IO Application Source

combines the application with the middleware created by mkMiddleware

mkMiddleware :: LoggerSet -> IO Middleware Source

combines gzip middleware and request logging middleware

see gzip; uses the default values for it.

the request logger is set up with the format Apache FromSocket, and uses the LoggerSet as the destination. see mkRequestLogger.