Skip to main content

FilteringProvider

Trait FilteringProvider 

Source
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§

Source

fn blocked_ips(&self) -> &[String]

Returns the list of blocked IP addresses.

Source

fn blocked_methods(&self) -> &[String]

Returns the list of blocked HTTP methods.

Source

fn blocked_patterns(&self) -> &[String]

Returns the list of blocked URL patterns.

Implementors§