resource to patch
data to send as the body of the request. An array of an arbitrary type is accepted and will be cast to ubyte[] before sending it.
HTTP connection to use
The template parameter T specifies the type to return. Possible values are char and ubyte to return char[] or ubyte[].
A T[] range containing the content of the resource pointed to by the URL.
auto http = HTTP(); http.addRequestHeader("Content-Type", "application/json"); auto content = patch("https://httpbin.org/patch", `{"title": "Patched Title"}`, http);
HTTP patch content.