Package io.servicetalk.http.netty
Class HttpServers
- java.lang.Object
-
- io.servicetalk.http.netty.HttpServers
-
public final class HttpServers extends java.lang.Object
Factory methods for building HTTP Servers backed byServerContext
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpServerBuilder
forAddress(java.net.SocketAddress socketAddress)
NewHttpServerBuilder
instance.static HttpServerBuilder
forPort(int port)
NewHttpServerBuilder
instance.
-
-
-
Method Detail
-
forPort
public static HttpServerBuilder forPort(int port)
NewHttpServerBuilder
instance.- Parameters:
port
- The listen port for the server.- Returns:
- a new builder.
-
forAddress
public static HttpServerBuilder forAddress(java.net.SocketAddress socketAddress)
NewHttpServerBuilder
instance.- Parameters:
socketAddress
- The listen address for the server.- Returns:
- a new builder.
-
-