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 Summary
Methods inherited from interface org.springframework.http.HttpMessage
getHeadersMethods inherited from interface org.springframework.http.ReactiveHttpOutputMessage
beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWith
-
Method Details
-
writeWith
Use the givenFileto write the body of the message to the underlying HTTP layer.- Parameters:
file- the file to transferposition- the position within the file from which the transfer is to begincount- the number of bytes to be transferred- Returns:
- a publisher that indicates completion or error.
-
writeWith
Use the givenPathto write the body of the message to the underlying HTTP layer.- Parameters:
file- the file to transferposition- the position within the file from which the transfer is to begincount- the number of bytes to be transferred- Returns:
- a publisher that indicates completion or error.
- Since:
- 5.1
-