install

fun install(channel: Channel, timeout: Duration)

Puts the handlers of timeout in channel's HTTP/1.1 pipeline, once; nothing on a channel without Reactor Netty's traffic handler.

  • Drains before the traffic handler, and before a LingeringClose, so that its own close does not linger.

  • Answers right before Reactor Netty's bridge to the route: after the traffic handler, so after the timeout handler Reactor Netty puts there for each request.