public final class HttpServers
extends java.lang.Object
ServerContext
.Modifier and Type | Method and Description |
---|---|
static HttpServerBuilder |
forAddress(java.net.SocketAddress socketAddress)
New
HttpServerBuilder instance. |
static HttpServerBuilder |
forPort(int port)
New
HttpServerBuilder instance. |
public static HttpServerBuilder forPort(int port)
HttpServerBuilder
instance.port
- The listen port for the server.public static HttpServerBuilder forAddress(java.net.SocketAddress socketAddress)
HttpServerBuilder
instance.socketAddress
- The listen address for the server.