Package org.springframework.http
Interface ZeroCopyHttpOutputMessage
- All Superinterfaces:
- HttpMessage,- ReactiveHttpOutputMessage
Sub-interface of 
ReactiveOutputMessage that has support for "zero-copy"
 file transfers.- Since:
- 5.0
- Author:
- Arjen Poutsma, Juergen Hoeller
- See Also:
- 
Method SummaryMethods inherited from interface org.springframework.http.HttpMessagegetHeadersMethods inherited from interface org.springframework.http.ReactiveHttpOutputMessagebeforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWith
- 
Method Details- 
writeWithUse the givenFileto write the body of the message to the underlying HTTP layer.- Parameters:
- 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
- Returns:
- a publisher that indicates completion or error.
 
- 
writeWithUse the givenPathto write the body of the message to the underlying HTTP layer.- Parameters:
- 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
- Returns:
- a publisher that indicates completion or error.
- Since:
- 5.1
 
 
-