Skip to main content

referer_host

Function referer_host 

Source
fn referer_host(referer: &str) -> Option<String>
Expand description

Extracts the lowercased host from a Referer value. Only http/https URLs parse (APISIX http.parse_uri parity); anything else — including a bare host without a scheme — is treated as malformed and returns None.