urld
urld copied to clipboard
URL handling for the D programming language
According to gemini://gemini.circumlunar.space/docs/specification.gmi \ mirrored at https://gemini.circumlunar.space/docs/specification.gmi
e.g. `URL("http://www.google.com")` compiles but very much does not do what it looks like.
Are there any plans to support subdomains?
The url in question is: https://www.blogfree.net/?l=4&wiki=Allgemeine_Gesch%E4ftsbedingungen" ``` import url; void main() { auto url = "https://www.blogfree.net/?l=4&wiki=Allgemeine_Gesch%E4ftsbedingungen" .parseURL; } ``` ``` (2) user (7) /t/ur> dub Performing "debug" build using /usr/bin/dmd...
```d parseURL("http://example.com?test1=some&test2=more"); ``` Crashes with the following error: `url.URLException@../../.dub/packages/urld/3.0.1/urld/source/url.d(31): domain name 'example.com?test1=some&test2=other' contains illegal character '&' at position 22 ` Interestingly, I see that the lib handles URLS like this...