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