pub trait FilteringProvider: Send + Sync {
// Required methods
fn blocked_ips(&self) -> &[String];
fn blocked_methods(&self) -> &[String];
fn blocked_patterns(&self) -> &[String];
}Expand description
Configuration for request filtering.
Implement this trait to customize which requests are blocked.
Required Methods§
Sourcefn blocked_ips(&self) -> &[String]
fn blocked_ips(&self) -> &[String]
Returns the list of blocked IP addresses.
Sourcefn blocked_methods(&self) -> &[String]
fn blocked_methods(&self) -> &[String]
Returns the list of blocked HTTP methods.
Sourcefn blocked_patterns(&self) -> &[String]
fn blocked_patterns(&self) -> &[String]
Returns the list of blocked URL patterns.