Package | Description |
---|---|
io.jooby | |
io.jooby.internal |
Modifier and Type | Method and Description |
---|---|
ServerOptions |
Server.getOptions()
Get server options.
|
ServerOptions |
Router.getServerOptions()
Available server options.
|
ServerOptions |
Jooby.getServerOptions()
Server options or
null . |
ServerOptions |
ServerOptions.setBufferSize(int bufferSize)
Set buffer size.
|
ServerOptions |
ServerOptions.setCompressionLevel(Integer compressionLevel)
Set compression level to use while producing gzip responses.
|
ServerOptions |
ServerOptions.setDefaultHeaders(boolean defaultHeaders)
Enabled/disabled default server headers:
Date , Content-Type and
Server . |
ServerOptions |
ServerOptions.setExpectContinue(Boolean expectContinue)
Set 100-Expect and continue requests are handled by the server.
|
ServerOptions |
ServerOptions.setGzip(boolean gzip)
Deprecated.
In favor of
setCompressionLevel(Integer) . |
ServerOptions |
ServerOptions.setHttp2(Boolean http2)
Turn on/off HTTP/2 support.
|
ServerOptions |
ServerOptions.setHttpsOnly(boolean httpsOnly)
Bind only https port.
|
ServerOptions |
ServerOptions.setIoThreads(int ioThreads)
Set number of IO threads to use.
|
ServerOptions |
ServerOptions.setMaxRequestSize(int maxRequestSize)
Set max request size in bytes.
|
ServerOptions |
ServerOptions.setPort(int port)
Set the server port (default is 8080).
|
ServerOptions |
ServerOptions.setSecurePort(Integer securePort)
Set HTTPs port.
|
ServerOptions |
ServerOptions.setServer(String server)
Set server name.
|
ServerOptions |
ServerOptions.setSsl(SslOptions ssl)
Set SSL options.
|
ServerOptions |
ServerOptions.setWorkerThreads(int workerThreads)
Set number of worker threads (a.k.a application) to use.
|
Modifier and Type | Method and Description |
---|---|
static Optional<ServerOptions> |
ServerOptions.from(com.typesafe.config.Config conf)
Creates server options from config object.
|
Modifier and Type | Method and Description |
---|---|
Server |
Server.setOptions(ServerOptions options)
Set server options.
|
Jooby |
Jooby.setServerOptions(ServerOptions serverOptions)
Set server options.
|
Modifier and Type | Method and Description |
---|---|
ServerOptions |
RouterImpl.getServerOptions() |
Copyright © 2022. All rights reserved.