fastcgi-3001.0.1: A Haskell library for writing FastCGI programsSource codeContentsIndex
Network.FastCGI
Portabilitynon-portable (uses FFI)
Stabilityexperimental
Maintainerlemmih@gmail.com
Contents
Single-threaded interface
Concurrent interface
Re-export
Description
Interface for FastCGI http://fastcgi.com/, using the fcgiapp API.
Synopsis
runFastCGIorCGI :: CGI CGIResult -> IO ()
runOneFastCGIorCGI :: CGI CGIResult -> IO Bool
runFastCGI :: CGI CGIResult -> IO ()
runOneFastCGI :: CGI CGIResult -> IO ()
runFastCGIConcurrent :: Int -> CGI CGIResult -> IO ()
runFastCGIConcurrent' :: (IO () -> IO a) -> Int -> CGI CGIResult -> IO ()
module Network.CGI
Single-threaded interface
runFastCGIorCGI :: CGI CGIResult -> IO ()Source
Handle a single CGI request, or FastCGI requests in an infinite loop. This function only returns normally if it was a CGI request. This lets you use the same program as either a FastCGI or CGI program, depending on what the server treats it as.
runOneFastCGIorCGISource
:: CGI CGIResult
-> IO BoolTrue if it was a FastCGI request, False if CGI.
Handle a single FastCGI or CGI request. This lets you use the same program as either a FastCGI or CGI program, depending on what the server treats it as.
runFastCGI :: CGI CGIResult -> IO ()Source
Handle FastCGI requests in an infinite loop.
runOneFastCGI :: CGI CGIResult -> IO ()Source
Handle a single FastCGI request.
Concurrent interface
runFastCGIConcurrentSource
:: IntMax number of concurrent threads.
-> CGI CGIResult
-> IO ()
Like runCGI, but uses the FastCGI interface and forks off a new thread (using forkOS) for every request.
runFastCGIConcurrent'Source
::
=> IO () -> IO aHow to fork a request.
-> IntMax number of concurrent threads.
-> CGI CGIResult
-> IO ()
Re-export
module Network.CGI
Produced by Haddock version 2.4.2