| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
HTTPServer
An HTTP server.
bind_addr: The interface on which to listen for connections.
For TCP sockets, a (host, port) tuple. Host values may be any IPv4
or IPv6 address, or any valid hostname. The string 'localhost' is a
synonym for '127.0.0.1' (or '::1', if your hosts file prefers IPv6).
The string '0.0.0.0' is a special IPv4 entry meaning "any active
interface" (INADDR_ANY), and '::' is the similar IN6ADDR_ANY for
IPv6. The empty string or None are not allowed.
For UNIX sockets, supply the filename as a string.
gateway: a Gateway instance.
minthreads: the minimum number of worker threads to create (default 10).
maxthreads: the maximum number of worker threads to create (default -1 = no limit).
server_name: defaults to socket.gethostname().
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).
nodelay: if True (the default since 3.1), sets the TCP_NODELAY socket
option.
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.
SSL/HTTPS
---------
You must have an ssl library installed and set self.ssl_adapter to an
instance of SSLAdapter (or a subclass) which provides the methods:
wrap(sock) -> wrapped socket, ssl environ dict
makefile(sock, mode='r', bufsize=-1) -> socket file object
|
|||
|
ConnectionClass An HTTP connection (active socket). |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
bind_addr The interface on which to listen for connections. |
|||
|
interrupt Set this to an Exception instance to interrupt the server. |
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
str(x)
|
|
|||
bind_addrThe interface on which to listen for connections. For TCP sockets, a (host, port) tuple. Host values may be any IPv4 or IPv6 address, or any valid hostname. The string 'localhost' is a synonym for '127.0.0.1' (or '::1', if your hosts file prefers IPv6). The string '0.0.0.0' is a special IPv4 entry meaning "any active interface" (INADDR_ANY), and '::' is the similar IN6ADDR_ANY for IPv6. The empty string or None are not allowed. For UNIX sockets, supply the filename as a string.
|
interruptSet this to an Exception instance to interrupt the server.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 4 09:57:31 2010 | http://epydoc.sourceforge.net |