|
NullHandler
A Logging handler to prevent library errors.
|
|
Connection
|
|
Listener
The Listener class is a class responsible for accepting
connections and queuing them to be processed by a worker
thread.
|
|
Rocket
The Rocket class is responsible for handling threads and
accepting and dispatching connections.
|
|
Monitor
|
|
ThreadPool
The ThreadPool class is a container class for all the worker
threads.
|
|
SSLError
|
|
Headers
|
|
FileWrapper
Wrapper to convert file-like objects to iterables
|
|
Worker
The Worker class is a base class responsible for receiving
connections and (a subclass) will run an application to process the
the connection
|
|
SocketTimeout
Exception for when a socket times out between requests.
|
|
BadRequest
Exception for when a client sends an incomprehensible
request.
|
|
SocketClosed
Exception for when a socket is closed by the client.
|
|
ChunkedReader
|
|
WSGIWorker
|
|
b(val)
Convert string/unicode/bytes literals into bytes. |
source code
|
|
|
u(val,
encoding=' us-ascii ' )
Convert bytes into string/unicode. |
source code
|
|
|
CherryPyWSGIServer(bind_addr,
wsgi_app,
numthreads=10,
server_name=1,
max=-1,
request_queue_size=5,
timeout=10,
shutdown_timeout=5)
A Cherrypy wsgiserver-compatible wrapper. |
source code
|
|
|
|
|
|
|
|
|
|
|
VERSION = ' 1.2.2 '
|
|
SERVER_NAME = ' www '
|
|
SERVER_SOFTWARE = ' Rocket 1.2.2 '
|
|
HTTP_SERVER_SOFTWARE = ' Rocket 1.2.2 Python/2.5.2 '
|
|
BUF_SIZE = 16384
|
|
SOCKET_TIMEOUT = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
|
|
THREAD_STOP_CHECK_INTERVAL = 1
PyMySQL: A pure-Python drop-in replacement for MySQLdb.
|
|
IS_JYTHON = True
|
|
IGNORE_ERRORS_ON_CLOSE = set([ 103, 104])
|
|
DEFAULT_LISTEN_QUEUE_SIZE = 5
|
|
DEFAULT_MIN_THREADS = 10
|
|
DEFAULT_MAX_THREADS = 0
|
|
DEFAULTS = { ' LISTEN_QUEUE_SIZE ' : 5, ' MAX_THREADS ' : 0, ' MIN_THR ...
|
|
PY3K = True
|
|
has_ssl = True
|
|
log = logging.getLogger('Rocket.Errors.ThreadPool')
|
|
re_SLASH = re.compile(r'(?i) %2F')
|
|
re_REQUEST_LINE = re.compile(r'(?x) ^(?P< method > OPTIONS| GET| HEA...
|
|
LOG_LINE = ' %(client_ip)s - "%(request_line)s" - %(status)s %( ...
|
|
RESPONSE = ' HTTP/1.1 %s\nContent-Length: %i\nContent-Type: %s\ ...
|
|
HTTP_METHODS = set(['OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', '...
|
|
_tspecials = re.compile(r'[ \(\)<>@,;:\\"/\[\]\?=] ')
|
|
NEWLINE = ' \r\n '
|
|
HEADER_RESPONSE = ' HTTP/1.1 %s\r\n%s '
|
|
BASE_ENV = { ' SCRIPT_NAME ' : '
' , ' SERVER_NAME ' : ' www ' , ' wsgi.err ...
|