mohws-0.2.1.1: Modular Haskell Web Server

Network.MoHWS.Module

Description

Copyright: 2009, Henning Thielemann

Synopsis

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 

Fields

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.