summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorportix <none@none>2012-05-21 12:49:42 +0200
committerportix <none@none>2012-05-21 12:49:42 +0200
commitaf2f927cdc6a8388af83e635219d37ebb3975b8c (patch)
treee6d1df46bcfa26d224a5844ccfadd9edac4727cb /api
parent836bac60bb956ff4ca3ad75f741ad02bf6221c06 (diff)
downloaddwb-af2f927cdc6a8388af83e635219d37ebb3975b8c.zip
New function sendRequest
Diffstat (limited to 'api')
-rw-r--r--api/jsapi.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/api/jsapi.txt b/api/jsapi.txt
index 5a21e8dd..0474436c 100644
--- a/api/jsapi.txt
+++ b/api/jsapi.txt
@@ -116,6 +116,27 @@ _returns_;; The return value of the included file
****
****
+[[sendRequest]]
+[float]
+==== *sendRequest()* ====
+
+[source,javascript]
+----
+void sendRequest(String uri, Function callback, [String method])
+----
+
+Sends a http-request.
+
+ ::
+
+_uri_;; The uri the request will be sent to.
+_callback_;; A callback that will be called when the request is finished, the
+callback has 2 parameters, the first will be the response body, the second the
+associated +SoupMessage+.
+_method_;; The http request method, default +GET+, optional.
+****
+
+****
[[timerStart]]
[float]
==== *timerStart()* ====