OPSI.web2.channel.fastcgi module¶
OPSI.web2 FastCGI backend support.
-
class
OPSI.web2.channel.fastcgi.
FastCGIChannelRequest
¶ Bases:
OPSI.web2.channel.cgi.BaseCGIChannelRequest
-
dataReceived
(recd)¶
-
fcgi_abort_request
(packet)¶
-
fcgi_begin_request
(packet)¶
-
fcgi_data
(packet)¶
-
fcgi_get_values
(packet)¶
-
fcgi_params
(packet)¶
-
fcgi_stdin
(packet)¶
-
fcgi_unknown_type
(packet)¶
-
finish
()¶
-
maxConnections
= 100¶
-
packetReceived
(packet)¶ @param packet: instance of C{fastcgi.Record}. @raise: FastCGIError on invalid version or where the type does not exist
in funName
-
pauseProducing
()¶
-
paused
= False¶
-
recvd
= ''¶
-
reqId
= 0¶
-
request
= None¶
-
resumeProducing
()¶
-
stopProducing
()¶
-
write
(data)¶
-
writeHeaders
(code, headers)¶
-
writePacket
(packet)¶
-
-
exception
OPSI.web2.channel.fastcgi.
FastCGIError
¶ Bases:
exceptions.Exception
-
class
OPSI.web2.channel.fastcgi.
FastCGIFactory
(requestFactory)¶ Bases:
twisted.internet.protocol.ServerFactory
-
buildProtocol
(addr)¶
-
protocol
¶ alias of
FastCGIChannelRequest
-
-
class
OPSI.web2.channel.fastcgi.
Record
(type, reqId, content, version=1)¶ Bases:
object
-
classmethod
fromHeaderString
(clz, rec)¶
-
toOutputString
()¶
-
totalLength
()¶
-
classmethod
-
OPSI.web2.channel.fastcgi.
getLenBytes
(length)¶
-
OPSI.web2.channel.fastcgi.
parseNameValues
(s)¶ - @param s: String containing valid name/value data, of the form:
- ‘namelength + valuelength + name + value’ repeated 0 or more times. See C{fastcgi.writeNameValue} for how to create this string.
@return: Generator of tuples of the form (name, value)
-
OPSI.web2.channel.fastcgi.
writeNameValue
(name, value)¶