HAppS-Server-0.9.2.1: Web related tools and services.ContentsIndex
HAppS.Server.HTTP.FileServe
Synopsis
type MimeMap = Map String String
fileServe :: MonadIO m => [FilePath] -> FilePath -> ServerPartT m Response
mimeTypes :: MimeMap
blockDotFiles :: (Request -> IO Response) -> Request -> IO Response
errorwrapper :: MonadIO m => String -> String -> ServerPartT m Response
Documentation
type MimeMap = Map String String
fileServe :: MonadIO m => [FilePath] -> FilePath -> ServerPartT m Response
mimeTypes :: MimeMap

Serve files with a mime type map under a directory. Uses the function to transform URIs to FilePaths.

Ready collection of common mime types.

blockDotFiles :: (Request -> IO Response) -> Request -> IO Response
errorwrapper :: MonadIO m => String -> String -> ServerPartT m Response
Produced by Haddock version 2.1.0