Example usage for Java io.vertx.core.http HttpServer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | actualPort() The actual port the server is listening on. |
Future | close() Close the server. |
HttpServer | connectionHandler(Handler Set a connection handler for the server. |
HttpServer | exceptionHandler(Handler Set an exception handler called for socket errors happening before the HTTP connection is established, e.g during the TLS handshake. |
Future | listen(int port, String host) Tell the server to start listening. |
HttpServer | listen(SocketAddress address, Handler Tell the server to start listening on the given address supplying a handler that will be called when the server is actually listening (or has failed). |
HttpServer | listen(int port, Handler Like #listen(int) but supplying a handler that will be called when the server is actually listening (or has failed). |
Future | listen(SocketAddress address) Like #listen(SocketAddress,Handler) but returns a Future of the asynchronous result |
Future | listen(int port) Like #listen(int,String) but the server will listen on host "0.0.0.0" and port specified here ignoring any value in the io.vertx.core.http.HttpServerOptions that was used when creating the server. |
HttpServer | listen(Handler Like #listen but supplying a handler that will be called when the server is actually listening (or has failed). |
Future | listen() Tell the server to start listening. |
HttpServer | listen(int port, String host, Handler Like #listen(int,String) but supplying a handler that will be called when the server is actually listening (or has failed). |
HttpServer | requestHandler(Handler Set the request handler for the server to requestHandler . |
HttpServer | websocketHandler(Handler Set the websocket handler for the server to wsHandler . |