Skip to main content

parse_http_get

Function parse_http_get 

Source
pub fn parse_http_get(urlarg: &str) -> (u16, String)
Expand description

Parses an input argument for an HTTP GET into the expected status code and URL to hit.

The URL is validated with the url crate, if possible, cleaning potential errors. If that fails, the URL is used as-is.