Function normalize_htu

Source
pub fn normalize_htu(input: &str) -> Result<String, DpopError>
Expand description

Normalize scheme/host/port/path for DPoP htu compare:

  • http/https only; lowercase scheme+host
  • drop query & fragment
  • elide default ports (80/443)
  • ensure non-empty path (“/”)
  • resolve dot-segments