Class HelidonKt
-
- All Implemented Interfaces:
public final class HelidonKt
-
-
Method Summary
-
-
Method Detail
-
serve
final static HttpServer serve(HttpServerSettings settings, HttpHandler handlers)
Create a Helidon server and start it. It is a shortcut to avoid passing the adapter.
- Parameters:
settings- Server settings info .handlers- List of HttpHandler handlers used in this server instance.- Returns:
The started HttpServer instance.
-
serve
final static HttpServer serve(HttpServerSettings settings, Function1<HandlerBuilder, Unit> block)
Create a Helidon server and start it. It is a shortcut to avoid passing the adapter.
- Parameters:
settings- Server settings info.block- Lambda to be used to create the list of HttpHandler handlers used in the server.- Returns:
The started HttpServer instance.
-
-
-
-