Skip to content
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

Add support for setting request URIs from IRIs #27

Open
sgodwincs opened this issue Dec 18, 2018 · 0 comments
Open

Add support for setting request URIs from IRIs #27

sgodwincs opened this issue Dec 18, 2018 · 0 comments

Comments

@sgodwincs
Copy link
Owner

The specification states that while the syntax of a request URI must strictly be a URI, users should be able to specify a IRI and have it be converted to a URI. This conversion would be the one specified in RFC3987 which essentially comes down to encoding non-ASCII characters with UTF-8 using percent encoding for each byte.

This will most likely be a separate crate like uriparse but instead called iriparse. Unfortunately, the design is a bit more subtle due to things like BIDI. There's also a question of performance as ideally the IRI would be parsed and validated in a single pass like uriparse does it, but this involves having to manually handle the various possible encodings of UCS/Unicode characters (e.g. UTF-8, UTF-16, etc.) allowed by RFC3987.

@sgodwincs sgodwincs changed the title Add support for settings request URIs from IRIs Add support for setting request URIs from IRIs Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant