http.post and other http. methods return a “httprequest object” but I could find no description or documentation of this “object”. Is it a string, array, table or something else? Could I create my own “object” and call sendsync() or sendasync() on my “object”?
If you click the “httprequest” link in the http.post (etc) docs, it links to the docs on that object. It’s a special object, which can only be created by the http.post etc.
if you’re looking for something aside from the usual GET/POST/PUT/DELETE, you can use https://electricimp.com/docs/api/http/request/ to create a generic object with your own HTTP method in it.