waf-core 0.4.0

Core types for Light WAF: Config, Decision, RequestContext, the WafModule contract, and the StateStore extension seam.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// SPDX-FileCopyrightText: 2026 0x00spor3
// SPDX-License-Identifier: Apache-2.0

//! Shared network helpers. Currently the trusted-proxy client-IP resolver,
//! reused by rate limiting, structured logging and future Geo/IP-reputation —
//! the real client IP is derived **once** and read by everyone from
//! `RequestContext::client_ip`.

mod client_ip;

pub use client_ip::{is_valid_cidr, ClientIpResolver, IpSource, ResolvedClientIp};