Skip to content

Commit

Permalink
add data playback
Browse files Browse the repository at this point in the history
  • Loading branch information
LPardue committed Sep 10, 2024
1 parent 2d2f41e commit 56fbe99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions h3i/src/recordreplay/qlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,15 @@ impl From<H3FrameCreatedEx> for H3Actions {
});
},

Http3Frame::Data { raw } => {
let mut payload = vec![];
if let Some(r) = raw {
payload = r.data.clone().unwrap_or("".to_string()).as_bytes().to_vec();
}

actions.push(Action::SendFrame { stream_id, fin_stream, frame: Frame::Data { payload } })
}

Http3Frame::Goaway { id } => {
actions.push(Action::SendFrame {
stream_id,
Expand Down

0 comments on commit 56fbe99

Please sign in to comment.