def __init__(self, cmd_queue, commands, config, sessions, *args, **kwargs):
"""
Constructor.
"""
# Commands queue.
self.cmd_queue = cmd_queue
# Commands array in shared memory.
self.commands = commands
# Sessions array in shared memory.
self.sessions = sessions
# Configuration instance.
self.config = config
# HTTP server version.
self.server_version = "temboard-agent/0.0.1"
# HTTP request method
self.http_method = None
# HTTP query.
self.query = None
# HTTP POST content in json format.
self.post_json = None
# Call HTTP request handler constructor.
BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
评论列表
文章目录