Skip to main content

Module transform

Module transform 

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