Expand description
Shared value transformations for extractors.
Transforms modify extracted values before they become part of the cache key. They can be chained to apply multiple transformations in sequence.
§Examples
use hitbox_http::extractors::transform::Transform;
// Hash sensitive values to avoid storing them in cache keys
let transforms = vec![Transform::Hash];
// Normalize case for case-insensitive matching
let transforms = vec![Transform::Lowercase];Enums§
- Transform
- Transforms extracted values before they become cache key parts.
Functions§
- apply_
hash - Apply SHA256 hash to value (truncated to 16 hex chars).
- apply_
single_ transform - Apply a single transform to a value.
- apply_
transform_ chain - Apply a chain of transforms to a value.