spring-framework / org.springframework.web.reactive.function / BodyInserters / fromDataBuffers

fromDataBuffers

open static fun <T : Publisher<DataBuffer>> fromDataBuffers(publisher: T): BodyInserter<T, ReactiveHttpOutputMessage>

Return a BodyInserter that writes the given Publisher<DataBuffer> to the body.

Parameters

publisher - the data buffer publisher to write

- the type of the publisher

Return
a BodyInserter that writes directly to the body

See Also
ReactiveHttpOutputMessage#writeWith(Publisher)