As the title already suggests, it would be very useful to have UPDATE, PUT, PATCH and DELETE as Request methods for the RestAPI. Maybe even OPTIONS.
Especially the PATCH one would be great to have for Discord Webhooks to be able to update messages.
Description
Description
Details
Details
- Severity
- Feature
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 11 x64
- Category
- General
Steps To Reproduce
These would be the new functions in the RestContext class:
c class RestContext { proto native int UPDATE( RestCallback cb, string request, string data ); proto native string UPDATE_now( string request, string data ); proto native int PUT( RestCallback cb, string request, string data ); proto native string PUT_now( string request, string data ); proto native int PATCH ( RestCallback cb, string request, string data ); proto native string PATCH _now( string request, string data ); proto native int DELETE( RestCallback cb, string request ); proto native string DELETE_now( string request ); }
Event Timeline
Comment Actions
I would also like to send custom headers, like bearer token and other things, but at the moment this is impossible to do.
Comment Actions
Yeah, sending custom Headers and not only content type headers would be a great addition too