class documentation
class HttpServer(http.HttpBase, asyncore.dispatcher):
Generic HTTP server class
| Method | __init__ |
Initializes the HTTP server |
| Method | handle |
Undocumented |
| Method | |
Undocumented |
| Method | |
Undocumented |
| Method | |
Undocumented |
| Instance Variable | accepting |
Undocumented |
| Instance Variable | handler |
Undocumented |
| Instance Variable | local |
Undocumented |
| Instance Variable | mainloop |
Undocumented |
| Instance Variable | max |
Undocumented |
| Instance Variable | port |
Undocumented |
| Instance Variable | request |
Undocumented |
| Instance Variable | socket |
Undocumented |
| Method | _ |
Checks whether any child processes are done |
| Method | _ |
Called for each incoming connection |
| Instance Variable | _children |
Undocumented |
Inherited from HttpBase:
| Method | |
Returns the ciphers string for SSL. |
| Instance Variable | using |
Undocumented |
| Method | _ |
Creates a TCP socket and initializes SSL if needed. |
| Method | _ |
Verify the certificate provided by the peer |
| Instance Variable | _ssl |
Undocumented |
| Instance Variable | _ssl |
Undocumented |
| Instance Variable | _ssl |
Undocumented |
| Instance Variable | _ssl |
Undocumented |
def __init__(self, mainloop, local_address, port, max_clients, handler, ssl_params=None, ssl_verify_peer=False, request_executor_class=None, ssl_verify_callback=None):
¶
overrides
ganeti.http.HttpBase.__init__Initializes the HTTP server
| Parameters | |
| mainloop:ganeti.daemon.Mainloop | Mainloop used to poll for I/O events |
| local | Local IP address to bind to |
| port:int | TCP port to listen on |
| max | maximum number of client connections open simultaneously. |
| handler:HttpServerHandler | Request handler object |
| ssl | SSL key and certificate |
| ssl | Whether to require client certificate and compare it with our certificate |
| request | a class derived from the HttpServerRequestExecutor class |
| ssl | Undocumented |