#include <server.h>
◆ port
◆ bind_addr
| const char* KlConfig::bind_addr |
◆ max_connections
| int KlConfig::max_connections |
default: KL_DEFAULT_MAX_CONNS
◆ read_timeout_ms
| int KlConfig::read_timeout_ms |
default: KL_DEFAULT_READ_TIMEOUT
◆ body_timeout_ms
| int KlConfig::body_timeout_ms |
total body deadline; 0 = use read_timeout_ms
◆ alloc
◆ parser
default: kl_parser_llhttp
◆ access_log
◆ access_log_data
| void* KlConfig::access_log_data |
passed as user_data to access_log
◆ log_fn
default: NULL (fprintf stderr)
◆ log_user_data
| void* KlConfig::log_user_data |
◆ install_signal_handlers
| int KlConfig::install_signal_handlers |
install SIGTERM/SIGINT handlers (single instance only — only the last server to call kl_server_run() receives signals)
◆ drain_timeout_ms
| int KlConfig::drain_timeout_ms |
graceful shutdown drain timeout (0 = immediate)
◆ tls
TLS config — NULL = plaintext (default)
◆ h2
HTTP/2 config — NULL = disabled (default)
◆ max_body_size
| size_t KlConfig::max_body_size |
discard-path body limit; default: 1 MB
◆ max_header_size
| size_t KlConfig::max_header_size |
max header block size; 0 = KL_READ_BUF_SIZE (8192)
◆ compress
compression config — NULL = disabled (default)
The documentation for this struct was generated from the following file: