captureResponseBody property
When true (the default) the interceptor buffers the response stream
so it can record the body excerpt and emit it to the timeline. The
buffered bytes are then re-emitted as a fresh single-shot stream so
downstream consumers (and Response.fromStream) see the response
unchanged.
Set to false for callers that consume responses as streams (large
downloads, server-sent events) and don't want the whole payload held
in memory. Only metadata (status, headers, duration) is recorded in
that case.
Implementation
final bool captureResponseBody;