Uses of Class
io.jooby.ServerOptions
-
Uses of ServerOptions in io.jooby
Modifier and TypeMethodDescriptionServer.getOptions()
Get server options.Jooby.getServerOptions()
Server options ornull
.Router.getServerOptions()
Available server options.ServerOptions.setBufferSize
(int bufferSize) Set buffer size.ServerOptions.setCompressionLevel
(Integer compressionLevel) Set compression level to use while producing gzip responses.ServerOptions.setDefaultHeaders
(boolean defaultHeaders) Enabled/disabled default server headers:Date
,Content-Type
andServer
.ServerOptions.setExpectContinue
(Boolean expectContinue) Set 100-Expect and continue requests are handled by the server.Turn on/off HTTP/2 support.ServerOptions.setHttpsOnly
(boolean httpsOnly) Bind only https port.ServerOptions.setIoThreads
(int ioThreads) Set number of IO threads to use.ServerOptions.setMaxRequestSize
(int maxRequestSize) Set max request size in bytes.ServerOptions.setPort
(int port) Set the server port (default is 8080).ServerOptions.setSecurePort
(Integer securePort) Set HTTPs port.Set server name.ServerOptions.setSsl
(SslOptions ssl) Set SSL options.ServerOptions.setWorkerThreads
(int workerThreads) Set number of worker threads (a.k.a application) to use.Modifier and TypeMethodDescriptionstatic Optional<ServerOptions>
ServerOptions.from
(com.typesafe.config.Config conf) Creates server options from config object.Modifier and TypeMethodDescriptionServer.setOptions
(ServerOptions options) Set server options.Jooby.setServerOptions
(ServerOptions serverOptions) Set server options.