public interface ZeroCopyHttpOutputMessage extends ReactiveHttpOutputMessage
ReactiveOutputMessage
that has support for "zero-copy"
file transfers.Modifier and Type | Method and Description |
---|---|
<any> |
writeWith(java.io.File file,
long position,
long count)
Use the given
File to write the body of the message to the underlying
HTTP layer. |
beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWith
getHeaders
<any> writeWith(java.io.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 transferred