Function convert_header_value

Source
pub fn convert_header_value(
    value: &HeaderValue,
    session: &Session,
    ctx: &Ctx,
) -> Option<HeaderValue>
Expand description

Processes special header values that contain dynamic variables. Supports variables like $host, $scheme, $remote_addr etc.

§Arguments

  • value - The header value to process
  • session - The HTTP session context
  • ctx - The application state

§Returns

  • Option<HeaderValue> - The processed header value or None if no special handling needed