Skip to main content

compute_origin

Function compute_origin 

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