mirror of https://github.com/espruino/BangleApps
android docs
parent
dc521ec5de
commit
5018af4c6c
|
@ -44,6 +44,10 @@ The boot code also provides some useful functions:
|
|||
* `id` - a custom (string) ID
|
||||
* `timeout` - a timeout for the request in milliseconds (default 30000ms)
|
||||
* `xpath` an xPath query to run on the request (but right now the URL requested must be XML - HTML is rarely XML compliant)
|
||||
* `return` for xpath, if not specified, one result is returned. If `return:"array"` an array of results is returned.
|
||||
* `method` HTTP method (default is `get`) - `get/post/head/put/patch/delete`
|
||||
* `body` the body of the HTTP request
|
||||
* `headers` an object of headers, eg `{HeaderOne : "headercontents"}`
|
||||
|
||||
eg:
|
||||
|
||||
|
|
Loading…
Reference in New Issue