redirectionio 2.5.2

Redirection IO Library to handle matching rule, redirect and filtering headers and body.
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Debug;

/// Represent an item added to the regex radix tree
pub trait NodeItem: Debug + Clone + Send + Sync + 'static {
    /// Return the regex used by this item
    ///
    /// Regex should not contains `^` at the start and `$` at the end, those are inserted for you
    /// automatically
    fn regex(&self) -> &str;

    /// Should the regex be case insensitive
    fn case_insensitive(&self) -> bool;
}