Browse Source

Polishing contribution

Closes gh-29622
pull/29639/head
rstoyanchev 3 years ago
parent
commit
7899fa3b0a
  1. 4
      framework-docs/src/docs/asciidoc/web/webflux.adoc

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

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

Loading…
Cancel
Save