Skip to main content

split_https_url

Function split_https_url 

Source
pub fn split_https_url(url: &str) -> Result<(String, String), Error>
Expand description

Split an HTTPS URL into (host, path) for use with https_get helpers.

ยงErrors

Returns Error if the URL is not HTTPS or does not contain a valid host.