URI parsing
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 5 04:44:21 PDT 2016
On Wednesday, 5 October 2016 at 10:19:08 UTC, John C wrote:
> What packages do people use when they want to parse URIs?
I did one based on the regex found in the RFC for my cgi and http
libs.
cgi version (more complete)
https://github.com/adamdruppe/arsd/blob/master/cgi.d#L2163
http version (just what i needed for handling relative links in
html)
https://github.com/adamdruppe/arsd/blob/master/http2.d#L114
If you just need to parse a complete uri though, go ahead and use
the regex from the RFC. My thing is more about making uris based
on other uris for handling those links.
More information about the Digitalmars-d
mailing list