Adding `delete` as HTTP method for http_json_read_data

Currently http_read_json/2,3 and http_read_json_dict/2,3 does not allow for delete as a valid HTTP method,

The documentation notes

  • domain_error(method, Method) if the request method is not a POST , PUT or PATCH .

Can delete be added for the predicate data_method/1?


For a 3rd party API where delete would be useful

https://petstore3.swagger.io/


EDIT May 19, 2023

May not need this if SWI-Prolog OpenAPI (Swagger) interface works.