Skip to main content

collect_frames

Function collect_frames 

Source
pub fn collect_frames(frames: &[Bytes]) -> Bytes
Expand description

Collect body frames into a single Bytes buffer.

This is a helper function to aggregate multiple body chunks into one continuous buffer for easier SSE parsing.