Http.delete
Revision as of 03:04, 16 October 2023 by Unknown (talk | contribs) (Created page with "In Mini Micro, the http.delete function uses the DELETE method to return the contents of the URL using the HTTP DELETE protocol. === Arguments === {| class="wikitabl...")
In Mini Micro, the http.delete function uses the DELETE method to return the contents of the URL using the HTTP DELETE protocol.
Arguments
Parameter Name | Meaning |
---|---|
url | URL of the web page or resource to fetch |
headers | optional map of HTTP headers |
Example
The following example, typed on the Mini Micro command line, deletes and retrieves a product from the DummyJSON web site
import "json"
request = http.delete("https://dummyjson.com/products/1")
request_data = json.parse(request)
pprint request_data