The URL parsing code (HTTPRequest::parseUrl) works for valid URLs but can have confusing errors (or maybe even nonexistent ones sometimes) for invalid URLs. For example https:\\example.com might throw an exception related to stoi trying to parse a non-integer character, instead of saying something about the schema not being valid.
The URL parsing code (
HTTPRequest::parseUrl) works for valid URLs but can have confusing errors (or maybe even nonexistent ones sometimes) for invalid URLs. For examplehttps:\\example.commight throw an exception related tostoitrying to parse a non-integer character, instead of saying something about the schema not being valid.