fn build_bulk_body(index: &str, entries: &[Value]) -> StringExpand description
Builds the NDJSON _bulk body: for every entry an action line
{"index":{"_index":<index>}} followed by the entry, each terminated by a
newline (APISIX get_logger_entry). Pure and network-free for testing.