public interface ZeroCopyHttpOutputMessage extends ReactiveHttpOutputMessage
ReactiveOutputMessagethat has support for "zero-copy" file transfers.
|Modifier and Type||Method and Description|
Use the given
beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWith
reactor.core.publisher.Mono<java.lang.Void> writeWith(java.io.File file, long position, long count)
Fileto write the body of the message to the underlying HTTP layer.
file- the file to transfer
position- the position within the file from which the transfer is to begin
count- the number of bytes to be transferred