class documentation
class HttpServerHandler(object):
Known subclasses: ganeti.server.noded.NodeRequestHandler
, ganeti.server.rapi.RemoteApiHandler
Base class for handling HTTP server requests.
Users of this class must subclass it and override the HandleRequest
function.
Static Method |
|
Formats the body of an error message. |
Method |
|
Handles a request. |
Method |
|
Called before handling a request. |
overridden in
ganeti.server.rapi.RemoteApiHandler
Formats the body of an error message.
Parameters | |
values:dict | dictionary with keys code, message and explain. |
Returns | |
tuple; (string, string) | Content-type and response body |