def __init__(self, host="127.0.0.1", port=0, ssl_context=None): WSGIServer.__init__(self, host, port, self, ssl_context=ssl_context) self.code = 204 self.headers = {} self.captured = []