Skip to main content

build_bulk_body

Function build_bulk_body 

Source
fn build_bulk_body(index: &str, entries: &[Value]) -> String
Expand 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.