def __init__(self, uri=None, headers_in={}, connection=None, method='GET',
                 protocol='HTTP/1.1', is_https=False):
        self.uri = uri
        self.unparsed_uri = uri
        self.connection = connection
        self.method = method
        self.protocol = protocol
        self.headers_in = MockTable(headers_in)
        # self.is_https_ needs to be accessible from tests.  To avoid name
        # conflict with self.is_https(), it is named as such.
        self.is_https_ = is_https
        self.ws_stream = StreamHixie75(self, True)
        self.ws_close_code = None
        self.ws_close_reason = None
        self.ws_version = common.VERSION_HYBI00
        self.ws_deflate = False
Construct an instance.
dataset/ETHPy150Open google/pywebsocket/test/mock.py/MockRequest.__init__