Modules§
Structs§
Functions§
- bootstrap
- get_
ip_ port_ thread_ count - get_
max_ body_ size - Maximum accepted request body size in bytes.
0means unlimited (the default — enforcing a cap is opt-in). Read fresh on every call, soRWS_CONFIG_MAX_BODY_SIZE_IN_BYTEStakes effect immediately, the same asget_request_allocation_size. - get_
request_ allocation_ size - get_
spa_ fallback - The configured SPA-fallback file (e.g.
"index.html"), orNoneifRWS_CONFIG_SPA_FALLBACKis unset/empty (the default — disabled). Read fresh on every call, so it can be toggled viarws.config.toml+SIGHUPwithout a restart, the same asget_max_body_size. - get_
spa_ fallback_ exclude_ prefixes - Path prefixes that never receive the SPA fallback (
RWS_CONFIG_SPA_FALLBACK_EXCLUDE_PREFIXES, comma-separated), even when the fallback is configured. Empty (default) excludes nothing. - get_
virtual_ hosts - Read all
[[virtual_host]]entries from config / env vars. - set_
default_ values