Put and Delete methods for Web Requests

CmdrWhitey13

  • Posts: 504
Good Morning all,
        This is my little suggestion to the engine.
May we have these methods built in?

PUT

The PUT method requests that the enclosed entity be stored under the supplied URI. If the URI refers to an already existing resource, it is modified; if the URI does not point to an existing resource, then the server can create the resource with that URI

DELETE

The DELETE method deletes the specified resource.

I believe with these added to the system, it may help people when working on the multiplayer aspect of the gaming world.
I have been doing a read and for PUT request, it would allow users to update a text file storing the info or create it if it does not exist.

The DELETE method would benefit buy clearing the game info for fresh data if required.

If this is possible, I believe it will aid the community well.
Keep up the good work. All the best.

https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods

mebloo

  • Posts: 128
I agree, and as the documentation says Stencyl supports REST-based APIs, it should have made available all the verbs required for REST communication.