def __init__(self, *args, **kwargs):

        # Figure out our engine.
        if 'engine' in kwargs:
            self.engine = kwargs.pop("engine")
        else:
            self.engine = Engine.instance()

        # Internal State
        self._stream = None
        self._processing = None
        self._requests = []
        self._sessions = []
        self._ssl_options = None
        self._reading_forever = False
        self._want_close = False
        self._no_process = False

        # Create the first Session
        ses = Session(self, *args, **kwargs)
        self._sessions.append(ses)


    ##### Public Event Handlers ###############################################
Initialize the HTTPClient and start the first session.
dataset/ETHPy150Open ecdavis/pants/pants/http/client.py/HTTPClient.__init__