Skip to main content

URI.parse_if_http

URI.parse_if_httpuri

Group: Conversions

Documentation

Parses a URI from text if it starts with "http://" or "https://". If the input text does not start with either of these schemes, this function returns Nothing.

Arguments

  • uri: The text to parse as a URI.

Returns

Parsed URI object if the input text starts with "http://" or "https://", otherwise Nothing.