

def initiate_connection(self):
    '\n        Provides any data that needs to be sent at the start of the connection.\n        Must be called for both clients and servers.\n        '
    self.state_machine.process_input(ConnectionInputs.SEND_SETTINGS)
    if self.client_side:
        preamble = b'PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n'
    else:
        preamble = b''
    f = SettingsFrame(0)
    for (setting, value) in self.local_settings.items():
        f.settings[setting] = value
    self._data_to_send += (preamble + f.serialize())

dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py H2Connection.initiate_connection/original