接口 ZeroCopyHttpOutputMessage

    • 方法详细资料

      • writeWith

        default reactor.core.publisher.Mono<VoidwriteWith​(File file,
                                                            long position,
                                                            long count)
        Use the given File to write the body of the message to the underlying HTTP layer.
        参数:
        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
        返回:
        a publisher that indicates completion or error.
      • writeWith

        reactor.core.publisher.Mono<VoidwriteWith​(Path file,
                                                    long position,
                                                    long count)
        Use the given Path to write the body of the message to the underlying HTTP layer.
        参数:
        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
        返回:
        a publisher that indicates completion or error.
        从以下版本开始:
        5.1