Expand description
NDJSON output writer utilities. NDJSON writer utilities for stdout with broken-pipe handling.
Structs§
- Ndjson
Writer - 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.