Uri class and parser

Mike van Dongen dlang at mikevandongen.nl
Fri Oct 26 07:40:12 PDT 2012


On Friday, 26 October 2012 at 14:22:07 UTC, Adam D. Ruppe wrote:
> On Friday, 26 October 2012 at 14:13:21 UTC, Mike van Dongen 
> wrote:
>> I am however considering it because even though not (clearly) 
>> defined, they are URIs and they are often used.
>
> The basedOn function in my uri struct in cgi.d does it:
> https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/cgi.d#L1702
>
> The unit test below the function is focused on checking the 
> relative function.

On Friday, 26 October 2012 at 11:52:09 UTC, John Chapman wrote:
> It would also be nice to support combining URIs from an 
> absolute and relative portion.

If relative URIs will be supported I agree there should be a 
method that merges two (incomplete) URIs into one (valid) URI.


More information about the Digitalmars-d mailing list