Logo Search packages:      
Sourcecode: sabnzbdplus version File versions

cherrypy::_cpwsgiserver3::CherryPyWSGIServer Class Reference

Inheritance diagram for cherrypy::_cpwsgiserver3::CherryPyWSGIServer:


List of all members.

Detailed Description

An HTTP server for WSGI.

bind_addr: a (host, port) tuple if TCP sockets are desired;
    for UNIX sockets, supply the filename as a string.
wsgi_app: the WSGI 'application callable'; multiple WSGI applications
    may be passed as (script_name, callable) pairs.
numthreads: the number of worker threads to create (default 10).
server_name: the string to set for WSGI's SERVER_NAME environ entry.
    Defaults to socket.gethostname().
max: the maximum number of queued requests (defaults to -1 = no limit).
request_queue_size: the 'backlog' argument to socket.listen();
    specifies the maximum number of queued connections (default 5).
timeout: the timeout in seconds for accepted connections (default 10).

protocol: the version string to write in the Status-Line of all
    HTTP responses. For example, "HTTP/1.1" (the default). This
    also limits the supported features used in the response.

The OpenSSL module must be importable for SSL functionality.
You can obtain it from http://pyopenssl.sourceforge.net/

ssl_certificate: the filename of the server SSL certificate.
ssl_privatekey: the filename of the server's private key file.

If either of these is None (both are None by default), this server
will not use SSL. If both are given and are valid, they will be read
on server start and used in the SSL context for the listening socket.

Definition at line 699 of file _cpwsgiserver3.py.

Public Member Functions

def __init__
def bind
def start

Public Attributes


Static Public Attributes

 ConnectionClass = HTTPConnection
string protocol = "HTTP/1.1"
 ready = False
 ssl_certificate = None
 ssl_private_key = None
string version = "CherryPy/3.0.0"

Private Attributes


Static Private Attributes

 _interrupt = None

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index