parse_http_url

Function parse_http_url 

Source
pub fn parse_http_url(value: &str, label: &str) -> Result<Url>
Expand description

Parses a required absolute HTTP or HTTPS URL with a host.

Paths, queries, and fragments are preserved. This is intended for ordinary navigation or redirect targets rather than base URLs used for path joining.

ยงErrors

Returns an error when the value is empty, is not an absolute URL, does not use HTTP(S), or has no host.