Hack
Description
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
data Hack_UrlScheme Source
Instances
type HackErrors = String -> IO ()Source
customizable error stream
Constructors
| Env | |
Fields
| |
Constructors
| Response | |
Fields
| |
type Application = Env -> IO ResponseSource
type Middleware = Application -> ApplicationSource