Interface HttpServerConfiguration


public interface HttpServerConfiguration

HTTP server module configuration.

Since:
1.0
Author:
Jeremy Kuhn
  • Method Details

    • server_host

      default String server_host()

      The host name of the server socket address.

      Defaults to "0.0.0.0".

      Returns:
      the server host name
    • server_port

      default int server_port()

      The port of the server socket address.

      Defaults to 8080.

      Returns:
      the server port
    • server_event_loop_group_size

      Integer server_event_loop_group_size()

      The number of event loops to allocate to the server.

      If not specified, the number of thread allocated to the root event loop group shall be used.

      Returns:
      the number of threads to allocate
    • key_store_type

      default String key_store_type()

      The type of key store.

      Defaults to "JKS".

      Returns:
      the key store type
    • compression_enabled

      default boolean compression_enabled()

      Enables/Disables HTTP compression.

      Defaults to false.

      Returns:
      true if compression is enabled, false otherwise
    • decompression_enabled

      default boolean decompression_enabled()

      Enables/Disables HTTP decompression.

      Defaults to false.

      Returns:
      true if decompression is enabled, false otherwise
    • compression_contentSizeThreshold

      default int compression_contentSizeThreshold()

      The threshold beyond which the response body should be compressed.

      Defaults to 0 which means all responses are compressed.

      Returns:
      the compression content size threshold
    • compression_deflate_compressionLevel

      default int compression_deflate_compressionLevel()

      Deflate compression level.

      Defaults to 6.

      Returns:
      the deflate compression level
    • compression_deflate_windowBits

      default int compression_deflate_windowBits()

      Deflate compression window bits.

      Defaults to 15.

      Returns:
      the deflate compression window bits
    • compression_deflate_memLevel

      default int compression_deflate_memLevel()

      Deflate compression memory level.

      Defaults to 8.

      Returns:
      the deflate compression memory level bits
    • compression_gzip_compressionLevel

      default int compression_gzip_compressionLevel()

      Gzip compression level.

      Defaults to 6.

      Returns:
      the gzip compression level
    • compression_gzip_windowBits

      default int compression_gzip_windowBits()

      Gzip compression window bits.

      Defaults to 15.

      Returns:
      the gzip compression window bits
    • compression_gzip_memLevel

      default int compression_gzip_memLevel()

      Gzip compression memory level.

      Defaults to 8.

      Returns:
      the gzip compression memory level
    • compression_zstd_blockSize

      default int compression_zstd_blockSize()

      Zstandard compression bock size.

      Defaults to 64 KB.

      Returns:
      the zstd compression block size
    • compression_zstd_compressionLevel

      default int compression_zstd_compressionLevel()

      Zstandard compression level.

      Defaults to 3.

      Returns:
      the zstd compression level
    • compression_zstd_maxEncodeSize

      default int compression_zstd_maxEncodeSize()

      Zstandard compression max encode size.

      Defaults to 32 MB.

      Returns:
      the zstd compression max encode size
    • tls_enabled

      default boolean tls_enabled()

      Enables/Disables HTTPS.

      Defaults to false.

      Returns:
      true if the option is enabled, false otherwise
    • h2c_enabled

      default boolean h2c_enabled()

      Enables/Disables H2C.

      This only applies when SSL is disabled, otherwise h2_enabled() is considered.

      Defaults to false.

      Returns:
      true if the option is enabled, false otherwise
    • h2_enabled

      default boolean h2_enabled()

      Enables/Disables HTTP/2.

      This only applies when SSL is enabled, otherwise h2c_enabled() is considered.

      Defaults to true.

      Returns:
      true if the option is enabled, false otherwise
    • key_store

      URI key_store()

      The path to the key store.

      Returns:
      the key store URI
    • key_store_password

      String key_store_password()

      The password of the key store.

      Returns:
      a password
    • tls_ciphers_includes

      String[] tls_ciphers_includes()

      The list of ciphers to include.

      Returns:
      a list of ciphers
    • tls_ciphers_excludes

      String[] tls_ciphers_excludes()

      The list of ciphers to exclude.

      Returns:
      a list of ciphers
    • http2_header_table_size

      default Long http2_header_table_size()

      The HTTP/2 header table size.

      Defaults to 4096.

      Returns:
      the header table size
    • http2_max_concurrent_streams

      default Integer http2_max_concurrent_streams()

      HTTP/2 max concurrent streams.

      Defaults to 100.

      Returns:
      max concurrent streams
    • http2_initial_window_size

      default Integer http2_initial_window_size()

      HTTP/2 initial window size.

      Defaults to 65535.

      Returns:
      initial window size
    • http2_max_frame_size

      default Integer http2_max_frame_size()

      HTTP/2 max frame size.

      Defaults to 16384.

      Returns:
      max frame size
    • http2_max_header_list_size

      default Integer http2_max_header_list_size()

      HTTP/2 max header list size.

      Defaults to Integer.MAX_VALUE.

      Returns:
      max header list size