fastcgi-3001.0.2.4: A Haskell library for writing FastCGI programs

Portabilitynon-portable (uses FFI)
Stabilityexperimental
Maintainerlemmih@gmail.com
Safe HaskellNone

Network.FastCGI

Contents

Description

Interface for FastCGI http://fastcgi.com/, using the fcgiapp API.

Synopsis

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

Arguments

:: CGI CGIResult 
-> IO Bool

True 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

Arguments

:: Int

Max 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

Arguments

:: (IO () -> IO a)

How to fork a request.

-> Int

Max number of concurrent threads.

-> CGI CGIResult 
-> IO () 

Re-export