Hack
Description
Hack spec! Stolen from Rack with some simplification.
- version :: [Int]
- data RequestMethod
- data Hack_UrlScheme
- type HackErrors = String -> IO ()
- data Env = Env {
- request_method :: RequestMethod
- script_name :: String
- path_info :: String
- query_string :: String
- server_name :: String
- server_port :: Int
- http :: [(String, String)]
- hack_version :: [Int]
- hack_url_scheme :: Hack_UrlScheme
- hack_input :: String
- hack_errors :: HackErrors
- hack_multithread :: Bool
- hack_multiprocess :: Bool
- hack_run_once :: Bool
- custom :: [(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