Interface ServerLimitsConfig


public interface ServerLimitsConfig
  • Method Details

    • maxHeaderSize

      @WithDefault("20K") io.quarkus.runtime.configuration.MemorySize maxHeaderSize()
      The maximum length of all headers, up to Integer.MAX_VALUE bytes.
    • maxBodySize

      @WithDefault("10240K") Optional<io.quarkus.runtime.configuration.MemorySize> maxBodySize()
      The maximum size of a request body, up to Long.MAX_VALUE bytes.
    • maxChunkSize

      @WithDefault("8192") io.quarkus.runtime.configuration.MemorySize maxChunkSize()
      The max HTTP chunk size, up to Integer.MAX_VALUE bytes.
    • maxInitialLineLength

      @WithDefault("4096") int maxInitialLineLength()
      The maximum length of the initial line (e.g. "GET / HTTP/1.0").
    • maxFormAttributeSize

      @WithDefault("2048") io.quarkus.runtime.configuration.MemorySize maxFormAttributeSize()
      The maximum length of a form attribute, up to Integer.MAX_VALUE bytes.
    • maxFormFields

      @WithDefault("256") int maxFormFields()
      Set the maximum number of fields of a form. Set to -1 to allow unlimited number of attributes.
    • maxFormBufferedBytes

      @WithDefault("1K") io.quarkus.runtime.configuration.MemorySize maxFormBufferedBytes()
      Set the maximum number of bytes a server can buffer when decoding a form. Set to -1 to allow unlimited length, up to Integer.MAX_VALUE bytes.
    • maxParameters

      @WithDefault("1000") int maxParameters()
      The maximum number of HTTP request parameters permitted for incoming requests.

      If a client sends more than this number of parameters in a request, the connection is closed.

    • maxQueryParameters

      @WithDefault("1024") int maxQueryParameters()
      The maximum number of query parameters decoded from the request URI.

      Query parameters beyond this limit are ignored.

    • maxMultipartPartHeaderSize

      @WithDefault("32K") io.quarkus.runtime.configuration.MemorySize maxMultipartPartHeaderSize()
      The maximum size of the headers section within a single MIME part of a multipart/form-data request. This limits the combined size of all header names and values for each individual part (e.g., the Content-Disposition and Content-Type headers), not the HTTP request headers.

      If a part's headers exceed this limit, the request is rejected with HTTP 413.

    • maxMultipartHeaderCount

      @WithDefault("40") int maxMultipartHeaderCount()
      The maximum number of headers allowed within a single MIME part of a multipart/form-data request.

      If a part contains more headers than this limit, the request is rejected with HTTP 413.

    • maxMultipartFileSize

      Optional<io.quarkus.runtime.configuration.MemorySize> maxMultipartFileSize()
      The maximum size of a single file part of a multipart/form-data request. Text attributes are bounded by max-form-attribute-size instead, and the whole request by max-body-size.

      If a file part exceeds this limit, the request is rejected with HTTP 413. By default, file parts are only bounded by max-body-size.

    • maxConnections

      OptionalInt maxConnections()
      The maximum number of connections that are allowed at any one time. If this is set it is recommended to set a short idle timeout.
    • headerTableSize

      OptionalLong headerTableSize()
      Set the SETTINGS_HEADER_TABLE_SIZE HTTP/2 setting.

      Allows the sender to inform the remote endpoint of the maximum size of the header compression table used to decode header blocks, in octets. The encoder can select any size equal to or less than this value by using signaling specific to the header compression format inside a header block. The initial value is 4,096 octets.

    • maxConcurrentStreams

      @WithDefault("128") long maxConcurrentStreams()
      Set the SETTINGS_MAX_CONCURRENT_STREAMS HTTP/2 setting.

      Indicates the maximum number of concurrent streams that the sender will allow. This limit is directional: it applies to the number of streams that the sender permits the receiver to create. Per RFC 9113, Section 6.5.2, it is recommended that this value be no smaller than 100, so as to not unnecessarily limit parallelism.

    • maxFrameSize

      OptionalInt maxFrameSize()
      Set the SETTINGS_MAX_FRAME_SIZE HTTP/2 setting. Indicates the size of the largest frame payload that the sender is willing to receive, in octets. The initial value is 2^14 (16,384) octets.
    • maxHeaderListSize

      OptionalLong maxHeaderListSize()
      Set the SETTINGS_MAX_HEADER_LIST_SIZE HTTP/2 setting. This advisory setting informs a peer of the maximum size of header list that the sender is prepared to accept, in octets. The value is based on the uncompressed size of header fields, including the length of the name and value in octets plus an overhead of 32 octets for each header field. The default value is 8192
    • rstFloodMaxRstFramePerWindow

      OptionalInt rstFloodMaxRstFramePerWindow()
      Set the max number of RST frame allowed per time window, this is used to prevent HTTP/2 RST frame flood DDOS attacks. The default value is 200, setting zero or a negative value, disables flood protection.
    • rstFloodWindowDuration

      Optional<Duration> rstFloodWindowDuration()
      Set the duration of the time window when checking the max number of RST frames, this is used to prevent HTTP/2 RST frame flood DDOS attacks.. The default value is 30 s, setting zero or a negative value, disables flood protection.