pub(in crate::http::pingora::handler) fn is_reserved_internal_header(name: &http::HeaderName) -> bool {
praxis_core::reserved_headers::is_reserved(name.as_str())
}
#[cfg(test)]
#[expect(clippy::allow_attributes, reason = "blanket test suppressions")]
#[allow(clippy::unwrap_used, clippy::expect_used, reason = "tests")]
mod tests {
use super::*;
#[test]
fn delegates_to_core_is_reserved() {
let reserved = http::HeaderName::from_static("x-praxis-foo");
assert!(
is_reserved_internal_header(&reserved),
"wrapper must delegate to core for reserved headers"
);
let normal = http::HeaderName::from_static("x-custom-header");
assert!(
!is_reserved_internal_header(&normal),
"wrapper must delegate to core for non-reserved headers"
);
}
}