|
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
| type S = String |
|
| data DBConnection |
| Container type for any database connection
| | Constructors | | forall c . IConnection c => DBC c | |
| Instances | |
|
|
| type HttpRequest = Request String |
|
| type HttpResponse = Response String |
|
| type FieldValidator = HttpRequest -> String -> String -> Either String String |
| Field validator takes field value and returns either error message or validated value
|
|
| data HttpVar |
| HTTP (GET or POST) variable can contain just a string or an uploaded file.
| | Constructors | | Str String | | | POSTfile | | | filename :: String | | | mimetype :: String | | | filebody :: String | |
|
| Instances | |
|
|
| type HttpVarsMap = Map String HttpVar |
|
| data StaticConfig |
| This object contains config which is common for all requests
| | Constructors | | HP | | | portNumber :: Int | Port number to listen
| | docdir :: String | Static content directory
| | dbDriver :: String | DB backend name
| | dbPath :: String | Info for DB backend
| | cacheDriver :: String | Cache backend name
| | cachePath :: String | Info for cache backend
| | sessionsDriver :: String | Sessions backend name
| | sessionsPath :: String | Info for sessions backend
| | accessLogPath :: String | Path to the access log
| | errorsLogPath :: String | Path to the erros log
| | dbpool :: MPool DBConnection | DB connections pool
| | cpool :: MPool CacheConnection | Cache connections pool
| | logChan :: Log | Handle to log
| | errChan :: Log | Handle to errors log
| | config :: ConfigParser | |
|
| Instances | |
|
|
| data StartupConfig |
| Temporarly object, contains part of StaticConfig which is not read from file
| | Constructors | | Instances | |
|
|
| data ActionConfig |
| Runtime controller action configuration
| | Constructors | | ActionConfig | | | request :: HttpRequest | HTTP request
| | httpParams :: StaticConfig | Static (global) configuration
| | dbconnection :: DBConnection | DB connection
| | sessionID :: SessionID | Current HTTP session ID
| | sessionMap :: SessionMap | Contains session variables
| | sessionsBackend :: SessionsConnection | Connection to sessions backend
| | cacheBackend :: CacheConnection | Connection to cache backend
| | cookiesExp :: String | Cookies expiration date
| | dbpoolIndex :: Int | Index of DB connection in pool
| | cpoolIndex :: Int | Index of cache connection in pool
|
|
| Instances | |
|
|
| data UrlParam |
|
|
| type FormVar = UrlParam |
|
| repackHeader :: Header -> (String, String) |
|
| packParam :: (String, String) -> UrlParam |
|
| data LogItem |
| Constructors | | LogItem | | | logRequest :: HttpRequest | | | logTime :: String | | | logMessage :: String | |
|
|
|
|
| type Log = Chan LogItem |
|
| Produced by Haddock version 2.4.2 |