spring-framework / org.springframework.http / ZeroCopyHttpOutputMessage / writeWith

writeWith

abstract fun writeWith(file: File, position: Long, count: Long): Mono<Void>

Use the given File to 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

Return
a publisher that indicates completion or error.