Browse Source

Improve Netty code sample

See gh-29622
pull/29639/head
Marten Deinum 2 years ago committed by rstoyanchev
parent
commit
c1da2a4e73
  1. 2
      framework-docs/src/docs/asciidoc/web/webflux.adoc

2
framework-docs/src/docs/asciidoc/web/webflux.adoc

@ -387,7 +387,7 @@ The code snippets below show using the `HttpHandler` adapters with each server A @@ -387,7 +387,7 @@ The code snippets below show using the `HttpHandler` adapters with each server A
----
HttpHandler handler = ...
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
HttpServer.create().host(host).port(port).handle(adapter).bind().block();
HttpServer.create().host(host).port(port).handle(adapter).bindNow().onDispose().block();
----
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
.Kotlin

Loading…
Cancel
Save