Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 ()
- prepApp :: LoggerSet -> Application -> IO Application
- mkMiddleware :: LoggerSet -> IO Middleware
Documentation
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
.