<div dir="ltr"><div>Hi,</div><div><br></div><div>I think PATCH would be a nice addition and it's not difficult to implement.</div><div><br></div><div>Kind regards.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 4, 2022 at 9:00 AM Richard Duivenvoorde <<a href="mailto:rdmailings@duif.net">rdmailings@duif.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2/1/22 08:35, Julien Cabieces wrote:<br>
<br>
>> I can see, that QgsBlockingNetworkRequest Class supports methods GET,<br>
>> PUT, POST, HEAD and DELETE. However, according to the documentation for<br>
>> the resource, I have to use the "PATCH" method for updating existing<br>
>> objects on the server<br>
>><br>
>> Is this possible using the QgsBlockingNetworkRequest Class from<br>
>> Python?<br>
> <br>
> In this actual state no, because the doRequest method that you could<br>
> have called with the PATCH method is private. So, you won't be able to call<br>
> it directly, and you won't be able to inherit QgsBlockingNetworkRequest<br>
> to call it either.<br>
<br>
I'd say this is a nice FeatureRequest, as more and more web-services start to use this newish [0][1](1995) PATCH thing...<br>
<br>
Maybe Ale is available (if you have some funding?)? I know he is known to fly around in that area of the code :-)<br>
<br>
>> Or is there any other Python Class I can use for this purpose ??<br>
> <br>
> I think one good solution is to use the request python framework (<a href="https://3.python-requests.org/" rel="noreferrer" target="_blank">https://3.python-requests.org/</a>)<br>
<br>
Which I found out recently is packaged with Windows QGIS...(?) So 'safe' to use in QGIS... (though I would prefer to use QgsBlockingNetworkRequest....)<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
[0] <a href="https://rubyonrails.org/2012/2/26/edge-rails-patch-is-the-new-primary-http-method-for-updates" rel="noreferrer" target="_blank">https://rubyonrails.org/2012/2/26/edge-rails-patch-is-the-new-primary-http-method-for-updates</a><br>
[1] <a href="https://en.wikipedia.org/wiki/Patch_verb" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/Patch_verb</a><br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Alessandro Pasotti</div><div>QCooperative:  <a href="https://www.qcooperative.net" target="_blank">www.qcooperative.net</a><br></div>ItOpen:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div>