mohws-0.2.0.1: Modular Haskell Web ServerSource codeContentsIndex
Network.MoHWS.Module
Description
Copyright: 2009, Henning Thielemann
Synopsis
data T body = Cons {
isServerHost :: HostName -> Bool
translatePath :: String -> String -> MaybeT IO FilePath
tweakRequest :: T body -> IO (T body)
handleRequest :: T body -> MaybeT IO (T body)
}
empty :: T body
tweakFilename :: (server -> FilePath -> IO FilePath) -> server -> T body -> IO (T body)
Documentation
data T body Source
isServerHost allows for advanced checks of the appropriate domain, e.g. we can catch all subdomains of a certain domain.
Constructors
Cons
isServerHost :: HostName -> Bool
translatePath :: String -> String -> MaybeT IO FilePath
tweakRequest :: T body -> IO (T body)
handleRequest :: T body -> MaybeT IO (T body)
empty :: T bodySource
tweakFilename :: (server -> FilePath -> IO FilePath) -> server -> T body -> IO (T body)Source
We use the type variable server although it will be always instantiated with ServerContext.T. However, with this type variable we avoid mutual recursive Haskell modules for Module and ServerContext.
Produced by Haddock version 2.4.2