Interface HttpServerBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and return the server.with(HttpServerConfig config) Configure the server.with(ServerSSLOptions options) Configure the server with the given SSLoptions.with(SSLEngineOptions engine) Configure the server with the given SSLengine.withConnectHandler(Handler<HttpConnection> handler) Set a connection handler for the server.
-
Method Details
-
with
Configure the server.- Parameters:
config- the server config- Returns:
- a reference to this, so the API can be used fluently
-
with
Configure the server with the given SSLoptions.- Parameters:
options- the SSL options- Returns:
- a reference to this, so the API can be used fluently
-
with
Configure the server with the given SSLengine.- Parameters:
engine- the SSL engine options- Returns:
- a reference to this, so the API can be used fluently
-
withConnectHandler
Set a connection handler for the server. This handler is called when a new connection is established.- Returns:
- a reference to this, so the API can be used fluently
-
build
-