Closed lo48576 closed 2 years ago
At least I want IRI-to-URI mappings, and it would be useful.
Implemented at f30f707a62846d3e85381997372ecfe084dce5c4.
I'll add examples and tests later.
Released as v0.5.0-beta.4. Note that this version contains breaking changes since beta.3.
I'm not willing to add URI-to-IRI conversion (not identity conversion, but with percent-decoding) at least for now. Report a new issue if someone wants that feature.
Note that identity conversion from URI to IRI is already provided.
Fallible IRI-to-URI cast would also be useful and can be implemented efficiently, as the only additional condition is absence of non-ASCII characters.
Fallible IRI-to-URI cast is implemented at 0d63d01c916f.
See https://www.rfc-editor.org/rfc/rfc3987.html#section-3.1 and https://www.rfc-editor.org/rfc/rfc3987.html#section-3.2.