Skip to main content

parse

Function parse 

Source
pub fn parse(entry: &str) -> Result<String, String>
Expand description

entry in its normal form, or why it isn’t a valid entry:

  • example.com → https://example.com
  • *.example.com → https://*.example.com (the domain and its subdomains)
  • https://example.com:8443/any/path → https://example.com:8443
  • http://localhost:3000 → itself: http only when written out.