HTTP Outcalls DELETE

I’m looking around the IC docs for the usage of DELETE HTTP methods and i can’t find any. Here is a snippet from the IC management canister:


type http_request_args = record {
    url : text;
    max_response_bytes : opt nat64;
    method : variant { get; head; post };
    headers : vec http_header;
    body : opt blob;
    transform : opt record {
        function : func(record { response : http_request_result; context : blob }) -> (http_request_result) query;
        context : blob;
    };
};

From the looks of it, currently only get, head and post are supported. How do we manage using delete and put http methods?

At the moment, HTTP PUT and DELETE methods are not supported. Support for them may be added in the future.

In the meantime, you can look at alternative solutions like hosting an off-chain worker that can make HTTP requests on behalf of your canister. The idea is something similar to the Idempotent Proxy: proxy HTTPS Outcalls to any Web2 service.