Class HttpConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The accept backlog, this is how many connections can be waiting to be accepted before connections start being rejectedAuthentication configurationRequest body related settingsThe CORS configboolean
Enable the CORS filter.Path to a unix domain socketboolean
Enable listening to host:portThe encryption key that is used to store persistent logins (e.g.Additional HTTP configuration per pathboolean
When set totrue
, the HTTP server automatically sends `100 CONTINUE` response when the request expects it (with the `Expect: 100-Continue` header).Additional HTTP Headers always sent in the responseThe HTTP hostboolean
Enable listening to host:portboolean
If this is true (the default) then HTTP/2 will be enabled.boolean
Enables or Disable the HTTP/2 Push feature.Http connection idle timeoutSet the SETTINGS_INITIAL_WINDOW_SIZE HTTP/2 setting.If insecure (i.e.The number if IO threads used to perform IO.Server limits configurationint
The HTTP portHttp connection read timeout for blocking IO.boolean
If this is true then the request start time will be recorded to enable logging of total request time.Configuration that allows setting the same site attributes for cookies.boolean
Enable socket reuse port (linux/macOs native transport only)The SSL configint
The HTTPS portThe Static Resources configboolean
Enable tcp cork (linux native transport only)boolean
Enable tcp fast open (linux native transport only)boolean
Enable tcp quick ack (linux native transport only)Used whenQuarkusIntegrationTest
is meant to execute against an application that is already running and listening on the host specified by this property.int
The HTTP port used to run testsUsed whenQuarkusIntegrationTest
is meant to execute against an application that is already running to configure the test to use SSL.int
The HTTPS port used to run testsProvides a hint (optional) for the default content type of responses generated for the errors not handled by the application. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
determinePort
(LaunchMode launchMode) int
determineSslPort
(LaunchMode launchMode)
-
Field Details
-
auth
Authentication configuration -
corsEnabled
Enable the CORS filter. -
port
The HTTP port -
testPort
The HTTP port used to run tests -
host
The HTTP hostIn dev/test mode this defaults to localhost, in prod mode this defaults to 0.0.0.0
Defaulting to 0.0.0.0 makes it easier to deploy Quarkus to container, however it is not suitable for dev/test mode as other people on the network can connect to your development machine.
-
testHost
Used whenQuarkusIntegrationTest
is meant to execute against an application that is already running and listening on the host specified by this property. -
hostEnabled
Enable listening to host:port -
sslPort
The HTTPS port -
testSslPort
The HTTPS port used to run tests -
testSslEnabled
Used whenQuarkusIntegrationTest
is meant to execute against an application that is already running to configure the test to use SSL. -
insecureRequests
If insecure (i.e. http rather than https) requests are allowed. If this isenabled
then http works as normal.redirect
will still open the http port, but all requests will be redirected to the HTTPS port.disabled
will prevent the HTTP port from opening at all.Default is
enabled
except when client auth is set torequired
(configured usingquarkus.http.ssl.client-auth=required
). In this case, the default isdisabled
. -
http2
If this is true (the default) then HTTP/2 will be enabled.Note that for browsers to be able to use it HTTPS must be enabled, and you must be running on JDK11 or above, as JDK8 does not support ALPN.
-
http2PushEnabled
Enables or Disable the HTTP/2 Push feature. This setting can be used to disable server push. The server will not send aPUSH_PROMISE
frame if it receives this parameter set to @{code false}. -
cors
The CORS config -
ssl
The SSL config -
staticResources
The Static Resources config -
handle100ContinueAutomatically
@ConfigItem(defaultValue="false", name="handle-100-continue-automatically") public boolean handle100ContinueAutomaticallyWhen set totrue
, the HTTP server automatically sends `100 CONTINUE` response when the request expects it (with the `Expect: 100-Continue` header). -
ioThreads
The number if IO threads used to perform IO. This will be automatically set to a reasonable value based on the number of CPU cores if it is not provided. If this is set to a higher value than the number of Vert.x event loops then it will be capped at the number of event loops.In general this should be controlled by setting quarkus.vertx.event-loops-pool-size, this setting should only be used if you want to limit the number of HTTP io threads to a smaller number than the total number of IO threads.
-
limits
Server limits configuration -
idleTimeout
Http connection idle timeout -
readTimeout
Http connection read timeout for blocking IO. This is the maximum amount of time a thread will wait for data, before an IOException will be thrown and the connection closed. -
body
Request body related settings -
encryptionKey
The encryption key that is used to store persistent logins (e.g. for form auth). Logins are stored in a persistent cookie that is encrypted with AES-256 using a key derived from a SHA-256 hash of the key that is provided here.If no key is provided then an in-memory one will be generated, this will change on every restart though so it is not suitable for production environments. This must be more than 16 characters long for security reasons
-
soReusePort
Enable socket reuse port (linux/macOs native transport only) -
tcpQuickAck
Enable tcp quick ack (linux native transport only) -
tcpCork
Enable tcp cork (linux native transport only) -
tcpFastOpen
Enable tcp fast open (linux native transport only) -
acceptBacklog
The accept backlog, this is how many connections can be waiting to be accepted before connections start being rejected -
initialWindowSize
Set the SETTINGS_INITIAL_WINDOW_SIZE HTTP/2 setting. Indicates the sender's initial window size (in octets) for stream-level flow control. The initial value is2^16-1
(65,535) octets. -
domainSocket
Path to a unix domain socket -
domainSocketEnabled
Enable listening to host:port -
recordRequestStartTime
If this is true then the request start time will be recorded to enable logging of total request time.This has a small performance penalty, so is disabled by default.
-
accessLog
-
trafficShaping
-
sameSiteCookie
Configuration that allows setting the same site attributes for cookies. -
unhandledErrorContentTypeDefault
Provides a hint (optional) for the default content type of responses generated for the errors not handled by the application.If the client requested a supported content-type in request headers (e.g. "Accept: application/json", "Accept: text/html"), Quarkus will use that content type.
Otherwise, it will default to the content type configured here.
-
header
Additional HTTP Headers always sent in the response -
filter
Additional HTTP configuration per path -
proxy
-
-
Constructor Details
-
HttpConfiguration
public HttpConfiguration()
-
-
Method Details
-
determinePort
-
determineSslPort
-