You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title says it all really; I am using http::Uri to parse things that look like URIs, and I was surprised to find that "example.com" parses successfully, but "example.com/foo" fails with an InvalidUri(InvalidFormat) error. "http://example.com/foo" parses successfully.
Is this deliberate (there could be a subtlety I'm missing here) or a bug?
This is using http 0.1.17.
The text was updated successfully, but these errors were encountered:
Perhaps this is not the right crate for the job? I tried using the url crate initially, but that is far broader in scope and I was looking for something restricted to HTTP URLs, which led me here.
I ended up using the url crate but adding some rules to handle the not-quite-urls I wanted to deal with. It feels like this Uri object was not really intended for my use case. Sorry for the noise :)
The title says it all really; I am using
http::Uri
to parse things that look like URIs, and I was surprised to find that "example.com" parses successfully, but "example.com/foo" fails with anInvalidUri(InvalidFormat)
error. "http://example.com/foo" parses successfully.Is this deliberate (there could be a subtlety I'm missing here) or a bug?
This is using http 0.1.17.
The text was updated successfully, but these errors were encountered: