Shared bounded error-body capture for every current consumer.
Issue #268 item 1 keeps the cap in one place. Issue #306 adds explicit drop provenance for OpenAI, Anthropic, and ModelsRefresh so an exactly-full body is distinct from one whose trailing bytes were discarded.
Summary
Functions
Append bytes while retaining at most max_bytes/0 and recording any drop.
Return the retained body bytes for classification or bounded diagnostics.
Maximum number of error-body bytes retained before classification.
Create an empty bounded capture with no discarded-byte evidence.
Whether at least one received byte was discarded from this capture.
Types
Functions
Append bytes while retaining at most max_bytes/0 and recording any drop.
Return the retained body bytes for classification or bounded diagnostics.
@spec max_bytes() :: pos_integer()
Maximum number of error-body bytes retained before classification.
@spec new() :: t()
Create an empty bounded capture with no discarded-byte evidence.
Whether at least one received byte was discarded from this capture.