Package | Description |
---|---|
ej.hoka.http |
Modifier and Type | Method and Description |
---|---|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.apiBase(java.lang.String apiBase)
Add a path common base that will be appended to all routes mapped without starting with a forward slash '/'.
|
static HttpServer.HttpServerBuilder |
HttpServer.builder()
Configure and build an
HttpServer instance. |
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.connectionTimeout(int connectionTimeout)
By default, server is configured to keep connection open during one minute if possible.
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.developmentMode()
Activate development mode.
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.encodingRegistry(EncodingRegistry encodingRegistry)
If this method is not called an instance of
EncodingRegistry is used by the server. |
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.port(int port)
Set the server port number.
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.secure(javax.net.ServerSocketFactory ssf)
Set Server Socket Factory.
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.simultaneousConnections(int simultaneousConnections)
set the max simultaneous connections
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.staticFilesHandler(StaticFilesHandler handler)
Set the static files handler to serve static files.
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.withStrictAcceptContentEncoding()
RFC2616 14.3
Activate strict content encoding acceptance.
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.withTrailingSlashSupport()
Activate trailing slash matching support in URI.
|
HttpServer.HttpServerBuilder |
HttpServer.HttpServerBuilder.workerCount(int workerCount)
set threads count that handles incoming request
|