diff options
author | portix <none@none> | 2012-05-21 12:49:42 +0200 |
---|---|---|
committer | portix <none@none> | 2012-05-21 12:49:42 +0200 |
commit | af2f927cdc6a8388af83e635219d37ebb3975b8c (patch) | |
tree | e6d1df46bcfa26d224a5844ccfadd9edac4727cb /api | |
parent | 836bac60bb956ff4ca3ad75f741ad02bf6221c06 (diff) | |
download | dwb-af2f927cdc6a8388af83e635219d37ebb3975b8c.zip |
New function sendRequest
Diffstat (limited to 'api')
-rw-r--r-- | api/jsapi.txt | 21 |
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()* ==== |