Package wtf :: Package impl :: Module scgi :: Class SCGIRequest
[hide private]
[frames] | no frames]

Class SCGIRequest

source code

object --+
         |
        SCGIRequest

SCGI Request abstraction
Instance Methods [hide private]
 
__init__(self, server, connection, flags)
Initialization
source code
 
close(self)
Close all streams
source code
dict
read_environ(self)
Read the environ from the socket
source code
stream.GenericStream
start_response(self, status, headers)
Start response and determine output stream
source code
 
error(self, status, message)
Emit a simple error
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _response_body_stream = None
  request_body_stream = None
  _env = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, server, connection, flags)
(Constructor)

source code 
Initialization
Parameters:
Overrides: object.__init__

read_environ(self)

source code 
Read the environ from the socket
Returns: dict
The header dict
Raises:

start_response(self, status, headers)

source code 
Start response and determine output stream
Parameters:
  • status (str) - Response status line
  • headers (list) - Response headers ([(key, value), ...])
Returns: stream.GenericStream
response stream

error(self, status, message)

source code 
Emit a simple error
Parameters:
  • status (str) - Status line
  • message (str) - Message