Skip to main content

Module output

Module output 

Source
Expand description

NDJSON output writer utilities. NDJSON writer utilities for stdout with broken-pipe handling.

Structs§

NdjsonWriter
Buffered NDJSON writer that flushes after every line.

Functions§

read_limited_line
Read a single line from a buffered reader with a per-line size limit.
write_error_json
Write a structured error as NDJSON directly to a raw writer.
write_error_json_with_context
Write a structured error as NDJSON directly to a raw writer, with context.