Skip to main content

resolve_http_limits

Function resolve_http_limits 

Source
pub fn resolve_http_limits<F>(
    input: &HttpLimitsCliInput,
    config_lookup: F,
) -> HttpLimitsResolved
where F: Fn(&str) -> Option<String>,
Expand description

Apply the flag > red_config > env > default chain.

config_lookup is a closure so this function is independent of the runtime/config-store type — keeps the resolver pure and testable. Each lookup returns the raw text value stored under the given key, matching how set_config_tree persists scalars.