接口 ZeroCopyHttpOutputMessage
- 所有超级接口:
HttpMessage,ReactiveHttpOutputMessage
- 所有已知实现类:
ReactorClientHttpRequest,ReactorNetty2ClientHttpRequest,ReactorNetty2ServerHttpResponse,ReactorServerHttpResponse,UndertowServerHttpResponse
Sub-interface of
ReactiveOutputMessage that has support for "zero-copy"
file transfers.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Juergen Hoeller
- 另请参阅:
-
方法概要
从接口继承的方法 cn.taketoday.http.HttpMessage
getHeaders从接口继承的方法 cn.taketoday.http.ReactiveHttpOutputMessage
beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWith
-
方法详细资料
-
writeWith
Use the givenFileto 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- 返回:
- a publisher that indicates completion or error.
-
writeWith
Use the givenPathto 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- 返回:
- a publisher that indicates completion or error.
-