Parses a given string into a URL object, with an optional modifier for customization.
Parses a given string into a URL object, with an optional modifier for customization.
Value parameters
optModifier
an optional string modifier that can be used to customize the parsing behavior.
s
the input string to be parsed; it should represent a valid URL.
Attributes
Returns
a Try[URL] which contains the successfully parsed URL in case of success, or a failure wrapped in Try if the input string cannot be interpreted as a valid URL, with an appropriate error message.