pub fn tee_stream<S, B, E>(
inner: S,
scanner: Scanner,
) -> impl Stream<Item = Result<B, E>> + Send + 'staticExpand description
Wraps a response byte stream so every chunk is forwarded byte-for-byte
while a Scanner observes it; on stream end the merged usage is recorded.
Memory overhead is one buffered SSE line, never the whole response.