Skip to main content

set_max_decoded_credential_bytes

Function set_max_decoded_credential_bytes 

Source
pub fn set_max_decoded_credential_bytes(cap: usize)
Expand description

Install the operator-configured cap. Called from lib::server::Server::try_new_from_config exactly once per worker process. Subsequent calls are no-ops (the OnceLock rejects the second set); the first wins. A 0 value is treated as “use the built-in default” so an operator config that explicitly sets 0 does not disable Basic-auth length-bound protection by accident.