Hack spec! Stolen from Rack with some simplification.
- version :: [Int]
- data RequestMethod
- data Hack_UrlScheme
- type Map = [(String, String)]
- type Stream = String -> IO ()
- type HackErrors = Stream
- data Env = Env {
- request_method :: RequestMethod
- script_name :: String
- path_info :: String
- query_string :: String
- server_name :: String
- server_port :: Int
- http :: Map
- 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 :: Map
- data Response = Response {}
- type Application = Env -> IO Response
- type Middleware = Application -> Application
- type MiddleWare = Middleware
Documentation
data RequestMethod Source
type HackErrors = StreamSource
customizable error stream
Env | |
|
Response | |
|
type Application = Env -> IO ResponseSource
type Middleware = Application -> ApplicationSource
type MiddleWare = MiddlewareSource