def advertise_alternative_service(self,
                                      field_value,
                                      origin=None,
                                      stream_id=None):
        if not isinstance(field_value, bytes):
            raise ValueError("Field must be bytestring.")

        if origin is not None and stream_id is not None:
            raise ValueError("Must not provide both origin and stream_id")

        self.state_machine.process_input(
            ConnectionInputs.SEND_ALTERNATIVE_SERVICE
        )

        if origin is not None:
            # This ALTSVC is sent on stream zero.
            f = AltSvcFrame(stream_id=0)
            f.origin = origin
            f.field = field_value
            frames = [f]
        else:
            stream = self._get_stream_by_id(stream_id)
            frames = stream.advertise_alternative_service(field_value)

        self._prepare_for_sending(frames)
Updates the local metadata dictionary to prepare for a new iteration.
dataset/ETHPy150Open python-hyper/hyper-h2/h2/connection.py/H2Connection.advertise_alternative_service--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/util/record_util.py/update_local_meta