Skip to main content

build_http_body

Function build_http_body 

Source
fn build_http_body(
    entries: &[Value],
    concat: ConcatMethod,
) -> (Bytes, &'static str)
Expand description

Serializes a batch into an HTTP body plus its Content-Type. Factored out of the network path so payload shaping is unit-testable without a socket.