Run an application using CGI.
Modulewai-extra-3.1.16Haskell2010
Network.Wai.Handler.CGI
Backend for Common Gateway Interface. Almost all users should use the run function.
- 4 values
- Packagewai-extra-3.1.16
- Exports4
- LanguageHaskell2010
- LicenceMIT
- SourceCGI.hs
Some web servers provide an optimization for sending files via a sendfile system call via a special header. To use this feature, provide that header name here.
value
runGeneric :: [(String, String)]all variables
-> (Int -> IO (IO ByteString))responseBody of input
-> (ByteString -> IO ())destination for output
-> Maybe ByteStringdoes the server support the X-Sendfile header?
-> Application-> IO ()
A generic CGI helper, which allows other backends (FastCGI and SCGI) to use the same code as CGI. Most users will not need this function, and can stick with run or runSendfile.