Difference between revisions of "Http"
Jump to navigation
Jump to search
(Created page with "In Mini Micro, the <msinline>http</msinline> module is a small collection of functions for interacting with web sites and services using the HTTP protocol. {| class="wiki...") |
m |
||
Line 5: | Line 5: | ||
! Method !! Purpose | ! Method !! Purpose | ||
|- | |- | ||
− | | [[http.get]](''url'') || download text, image, or sound at the given ''url'' | + | | [[http.get]](''url'', ''headers'') || download text, image, or sound at the given ''url'' |
|- | |- | ||
− | | [[http.delete]] ''url'' || delete the resource at the given ''url'' | + | | [[http.delete]] ''url'', ''headers'' || delete the resource at the given ''url'' |
|- | |- | ||
− | | [[http.post]] ''url'', ''data'' || post to the given ''url'' with the given ''data'' | + | | [[http.post]] ''url'', ''data'', ''headers'' || post to the given ''url'' with the given ''data'' |
|- | |- | ||
− | | [[http.put]] ''url'', ''data'' || create a resource at ''url'' with the given ''data'' | + | | [[http.put]] ''url'', ''data'', ''headers'' || create a resource at ''url'' with the given ''data'' |
|} | |} | ||
[[Category:Mini Micro]] | [[Category:Mini Micro]] |
Latest revision as of 04:08, 24 September 2020
In Mini Micro, the http
module is a small collection of functions for interacting with web sites and services using the HTTP protocol.
Method | Purpose |
---|---|
http.get(url, headers) | download text, image, or sound at the given url |
http.delete url, headers | delete the resource at the given url |
http.post url, data, headers | post to the given url with the given data |
http.put url, data, headers | create a resource at url with the given data |