Hack spec! Stolen from Rack with some simplification.
- version :: [Int]
- data RequestMethod
- data Hack_UrlScheme
- type HackErrors = String -> IO ()
- data Env = Env {
- requestMethod :: RequestMethod
- scriptName :: String
- pathInfo :: String
- queryString :: String
- serverName :: String
- serverPort :: Int
- http :: [(String, String)]
- hackVersion :: [Int]
- hackUrlScheme :: Hack_UrlScheme
- hackInput :: ByteString
- hackErrors :: HackErrors
- hackHeaders :: [(String, String)]
- data Response = Response {}
- type Application = Env -> IO Response
- type Middleware = Application -> Application
Documentation
data RequestMethod Source
type HackErrors = String -> IO ()Source
customizable error stream
Env | |
|
Response | |
|
type Application = Env -> IO ResponseSource
type Middleware = Application -> ApplicationSource