pub fn compute_origin(url: &str) -> Result<String, FetchError>Expand description
Computes the serialized origin (scheme + host + port) for an HTTP/HTTPS URL per RFC 6454 / W3C Fetch.
pub fn compute_origin(url: &str) -> Result<String, FetchError>Computes the serialized origin (scheme + host + port) for an HTTP/HTTPS URL per RFC 6454 / W3C Fetch.