An HTTP server.
|
__init__(self,
bind_addr,
gateway,
minthreads=10,
maxthreads=-1,
server_name=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
error_log(self,
msg='
' ,
level=20,
traceback=False) |
source code
|
|
|
bind(self,
family,
type,
proto=0)
Create (or recreate) the actual socket object. |
source code
|
|
|
tick(self)
Accept a new connection and put it on the Queue. |
source code
|
|
|
|
|
|
|
stop(self)
Gracefully shutdown a server that is serving forever. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
_bind_addr = ' 127.0.0.1 '
|
|
_interrupt = None
hash(x)
|
|
gateway = None
A Gateway instance.
|
|
minthreads = None
The minimum number of worker threads to create (default 10).
|
|
maxthreads = None
The maximum number of worker threads to create (default -1 = no
limit).
|
|
server_name = None
The name of the server; defaults to socket.gethostname().
|
|
protocol = ' HTTP/1.1 '
The version string to write in the Status-Line of all HTTP responses.
|
|
request_queue_size = 5
The 'backlog' arg to socket.listen(); max queued connections (default
5).
|
|
shutdown_timeout = 5
The total time, in seconds, to wait for worker threads to cleanly
exit.
|
|
timeout = 10
The timeout in seconds for accepted connections (default 10).
|
|
version = ' CherryPy/3.3.0 '
A version string for the HTTPServer.
|
|
software = None
The value to set for the SERVER_SOFTWARE entry in the WSGI environ.
|
|
ready = False
An internal flag which marks whether the socket is accepting
connections
|
|
max_request_header_size = 0
The maximum size, in bytes, for request headers, or 0 for no limit.
|
|
max_request_body_size = 0
The maximum size, in bytes, for request bodies, or 0 for no limit.
|
|
nodelay = True
If True (the default since 3.1), sets the TCP_NODELAY socket option.
|
|
ssl_adapter = None
An instance of SSLAdapter (or a subclass).
|