pub fn encode_response_streaming(
grid: &HGrid,
accept: &str,
) -> Result<(Vec<u8>, Vec<Vec<u8>>, &'static str), CodecError>Expand description
Encode a grid as a streaming byte iterator: yields header chunk then row chunks.
Returns (header_bytes, row_batches, content_type).
Rows are batched into groups of ~500 to balance streaming granularity against
allocation overhead. For codecs without streaming support (or HBF), the header
contains the full response and row_batches is empty.