www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - on std.net.curl high level functions

reply Mengu <mengukagan gmail.com> writes:
hi all

what do you think about high level functions such as get, post, 
put, delete returning a Request object with status code, headers 
and content as its properties rather than just the content? this 
would make things easier for n00bs and newcomers to D as everyone 
would not have to create their own httprequest.d file in order to 
get the status and headers along with the content.
Oct 24 2015
parent reply tired_eyes <pastuhov85 gmail.com> writes:
On Sunday, 25 October 2015 at 00:14:38 UTC, Mengu wrote:
 hi all

 what do you think about high level functions such as get, post, 
 put, delete returning a Request object with status code, 
 headers and content as its properties rather than just the 
 content? this would make things easier for n00bs and newcomers 
 to D as everyone would not have to create their own 
 httprequest.d file in order to get the status and headers along 
 with the content.
I've tried to use std.net.curl but ended using etc.c.curl and arsd due to incompleteness of the current implementaton. Currently std.net.curl lacks some trivial things, and this topic was discussed before (but AFAIK no clear decision was made).
Oct 26 2015
parent Mengu <mengukagan gmail.com> writes:
On Monday, 26 October 2015 at 10:47:20 UTC, tired_eyes wrote:
 On Sunday, 25 October 2015 at 00:14:38 UTC, Mengu wrote:
 hi all

 what do you think about high level functions such as get, 
 post, put, delete returning a Request object with status code, 
 headers and content as its properties rather than just the 
 content? this would make things easier for n00bs and newcomers 
 to D as everyone would not have to create their own 
 httprequest.d file in order to get the status and headers 
 along with the content.
I've tried to use std.net.curl but ended using etc.c.curl and arsd due to incompleteness of the current implementaton. Currently std.net.curl lacks some trivial things, and this topic was discussed before (but AFAIK no clear decision was made).
having equivalent of Python's Request lib in Phobos would be great imho.
Oct 26 2015