sendPriorityUpdate method
Stage a PRIORITY_UPDATE frame for transmission.
The frame is stored in pendingPriorityUpdates and serialized into pendingQuicPackets for later transmission by the transport layer.
Implementation
void sendPriorityUpdate(int streamId, String priority) {
final frame = PriorityUpdateFrame(
streamId: streamId,
priorityFieldValue: priority,
);
_pendingPriorityUpdates.add(frame);
_pendingQuicPackets.add(frame.toFrame().serialize());
}