-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI validation #171
Comments
https://github.com/mirage/ocaml-uri/blob/master/lib/uri.ml#L1105-L1112 This is the implementation of |
You haven't elaborated on your usecase, but you could just do a |
The use case is to validate the syntax of a URI. Granted. a lot of strings are a valid URI but might still not match the expectation because, for example, the scheme is valid but unexpected. |
The use case is validation of user inputed url strings which are going to be used to send information to. By doing this with an empty string you would have it return true |
I am currently trying to use
Uri.of_string
as an assertion that a url input is valid, however I have learned this is not the case. Is there a way to validate urls within this library, it would be a useful utility and avoid having to regex directly for this.The text was updated successfully, but these errors were encountered: