如何在 Reactor Netty HTTP 客户端中设置 TCP Keepalive?

How to set TCP Keepalive in Reactor Netty HTTP client?

我看到了

HttpClient.from(TcpClient.create().option(ChannelOption.SO_KEEPALIVE, true)) 

from 方法已弃用。

我目前应该如何使用 HttpClient.create() 设置 SO_KEEPALIVE

我想的更简单:

HttpClient.create().option(ChannelOption.SO_KEEPALIVE, true)