class documentation

class HttpServer(http.HttpBase, asyncore.dispatcher):

View In Hierarchy

Generic HTTP server class

Method __init__ Initializes the HTTP server
Method handle_accept Undocumented
Method OnSignal Undocumented
Method Start Undocumented
Method Stop Undocumented
Instance Variable accepting Undocumented
Instance Variable handler Undocumented
Instance Variable local_address Undocumented
Instance Variable mainloop Undocumented
Instance Variable max_clients Undocumented
Instance Variable port Undocumented
Instance Variable request_executor Undocumented
Instance Variable socket Undocumented
Method _CollectChildren Checks whether any child processes are done
Method _IncomingConnection Called for each incoming connection
Instance Variable _children Undocumented

Inherited from HttpBase:

Method GetSslCiphers Returns the ciphers string for SSL.
Instance Variable using_ssl Undocumented
Method _CreateSocket Creates a TCP socket and initializes SSL if needed.
Method _SSLVerifyCallback Verify the certificate provided by the peer
Instance Variable _ssl_cert Undocumented
Instance Variable _ssl_chain Undocumented
Instance Variable _ssl_key Undocumented
Instance Variable _ssl_params 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):

Initializes the HTTP server

Parameters
mainloop:ganeti.daemon.MainloopMainloop used to poll for I/O events
local_address:stringLocal IP address to bind to
port:intTCP port to listen on
max_clients:intmaximum number of client connections open simultaneously.
handler:HttpServerHandlerRequest handler object
ssl_params:HttpSslParamsSSL key and certificate
ssl_verify_peer:boolWhether to require client certificate and compare it with our certificate
request_executor_class:classa class derived from the HttpServerRequestExecutor class
ssl_verify_callbackUndocumented
def handle_accept(self):

Undocumented

def OnSignal(self, signum):

Undocumented

def Start(self):

Undocumented

def Stop(self):

Undocumented

accepting: bool =

Undocumented

handler =

Undocumented

local_address =

Undocumented

mainloop =

Undocumented

max_clients =

Undocumented

port =

Undocumented

request_executor =

Undocumented

socket =

Undocumented

def _CollectChildren(self, quick):

Checks whether any child processes are done

Parameters
quick:boolWhether to only use non-blocking functions
def _IncomingConnection(self):

Called for each incoming connection

_children: list =

Undocumented