Introduce OutputStream BodyInserter

This commit introduces a BodyInserter that inssert any bytes written to
an output stream to the body of an output message.

Closes gh-31184
This commit is contained in:
Arjen Poutsma
2023-09-11 11:00:11 +02:00
parent 913dc86e18
commit 59d123a18e
5 changed files with 634 additions and 1 deletions

View File

@@ -32,7 +32,10 @@ import org.springframework.util.Assert;
/**
* Bridges between {@link OutputStream} and
* {@link Flow.Publisher Flow.Publisher<T>}.
*
* <p>Note that this class has a near duplicate in
* {@link org.springframework.core.io.buffer.OutputStreamPublisher}.
*
* @author Oleh Dokuka
* @author Arjen Poutsma
* @since 6.1