Package com.hexagonkt.http.server.nima
Class NimaKt
-
- All Implemented Interfaces:
public final class NimaKt
-
-
Method Summary
Modifier and Type Method Description final static HttpServerserve(HttpServerSettings settings, HttpHandler handlers)Create a Helidon Nima server and start it. final static HttpServerserve(HttpServerSettings settings, Function1<HandlerBuilder, Unit> block)Create a Helidon Nima server and start it. -
-
Method Detail
-
serve
final static HttpServer serve(HttpServerSettings settings, HttpHandler handlers)
Create a Helidon Nima 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 Nima 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.
-
-
-
-