std.net.curl support GET, PUT, POST, etc.. but PATCH method is missed and there's no way to define a custom method request.
(custom requests are allowed with libcurl)
I'm not sure that's enough. If you search for "method.put" inside source, you see there's a lot of conditions. I think patch is similar to put, but I'm not sure which check are needed to make it work fine.
The current version in phobos of std.net.curl.patch does not upload any data in the http request.
Small testcase: http://pastebin.com/UujEqh4K
Expected: the data field in the response should not be empty
---------------------------------
Workaround: change the switch case in std.net.curl.HTTP.perform:
[...]
case Method.patch:
p.curl.set(CurlOption.customrequest, "PATCH");
p.curl.set(CurlOption.upload, 1L); // add this line
opt = CurlOption.customrequest;
break;
[...]
Note: probably this workaround does not leave a clean state.
Comment #6 by github-bugzilla — 2015-10-04T18:20:28Z