fastcgi-3001.0.2.5: A Haskell library for writing FastCGI programs

Copyright(c) Bjorn Bringert 2004-2005 (c) Lemmih 2006
LicenseBSD-style (see the file libraries/network/LICENSE)
Maintainerlemmih@gmail.com
Stabilityexperimental
Portabilitynon-portable (uses FFI)
Safe HaskellNone
LanguageHaskell98

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.

runOneFastCGIorCGI Source #

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

runFastCGIConcurrent Source #

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