Package trac :: Package web :: Module _fcgi :: Class WSGIServer

Class WSGIServer

source code

object --+    
         |    
    Server --+
             |
            WSGIServer

FastCGI server that supports the Web Server Gateway Interface. See <http://www.python.org/peps/pep-0333.html>.
Nested Classes

Inherited from Server: cgirequest_class, request_class

Instance Methods
 
__init__(self, application, environ=None, multithreaded=True, **kw)
environ, if present, must be a dictionary-like object.
source code
 
handler(self, req)
Special handler for WSGI.
source code

Inherited from Server: error, run

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

Class Variables

Inherited from Server: inputStreamShrinkThreshold

Properties

Inherited from object: __class__

Method Details

__init__(self, application, environ=None, multithreaded=True, **kw)
(Constructor)

source code 

environ, if present, must be a dictionary-like object. Its contents will be copied into application's environ. Useful for passing application-specific variables.

Set multithreaded to False if your application is not MT-safe.

Overrides: object.__init__

handler(self, req)

source code 
Special handler for WSGI.
Overrides: Server.handler