Minetest: Add support for PUT and DELETE methods in HTTPRequest

Created on 23 Mar 2020  路  1Comment  路  Source: minetest/minetest

Problem

There is currently no way to perform PUT and DELETE requests. Yet these two methods are often required by APIs of GitLab, Bitbucket, and GitHub in order to update or delete specified endpoints.

Solution

I would suggest adding an optional method field to the HTTPRequest table that can be either GET, PUT, POST, or DELETE. If the post_data field is not nil, then the method will be constrained to just POST (default as usual) or PUT.

@ Script API Feature request

>All comments

I'm using a python script to work around this now. I will likely post it when complete.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

echosa picture echosa  路  3Comments

ghost picture ghost  路  3Comments

Fixer-007 picture Fixer-007  路  3Comments

Wuzzy2 picture Wuzzy2  路  3Comments

tacotexmex picture tacotexmex  路  3Comments