Safe Haskell | None |
---|
Hack2.Contrib.Middleware.File
Description
Stolen from rack: serves files below the +root+ given, according to the path info of the Rack request.
Documentation
file :: Maybe ByteString -> MiddlewareSource
serve :: Maybe ByteString -> ByteString -> IO ResponseSource