Den 04-09-2011 00:47, David Nadlinger skrev:
On 9/3/11 10:19 PM, jdrewsen wrote:
The (un)escape methods are located in the Protocol template and is used
for escaping strings for all of the protocols supported by libcurl. That
should be in the documentation of course.

Yes, sure – but do they add any value over the functions from std.uri?
Otherwise, I would argue to drop the libcurl ones in favor of the native
D ones, having the same functionality in Phobos twice doesn't seem
desirable to me.

I noticed that libcurl changed their escape/unescape function from not needing a curl handle to requiring one. This is probably because the supported protocols escapes string differently and this would be supported automatically by using libcurls escape functions in std.curl.

On the other hand I also think they fit better in the std.uri package for the http protocol at least. I do not know much about escapes in the two other std.curl supported protocols Ftp and Smtp. All in all this probably suggests that I should remove the std.curl escape functions and std.uri should be used instead.

Anyone who disagrees with this choice?

/Jonas

Reply via email to