changeset 90:e6a15f619786

added headers in HttpPost/Delete/Get/Put
author amazy
date Thu, 02 Feb 2017 21:28:28 +0100
parents c9a33e4a0577
children 025744919357
files Sphinx/source/users/lua.rst
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/users/lua.rst	Fri Jan 20 09:49:26 2017 +0100
+++ b/Sphinx/source/users/lua.rst	Thu Feb 02 21:28:28 2017 +0100
@@ -155,13 +155,14 @@
 <lua-rest>`, several functions are available to make generic HTTP
 requests to Web services:
 
-* ``HttpGet(url)``
-* ``HttpPost(url, body)``
-* ``HttpPut(url, body)``
-* ``HttpDelete(url)``
+* ``HttpGet(url, headers)``
+* ``HttpPost(url, body, headers)``
+* ``HttpPut(url, body, headers)``
+* ``HttpDelete(url, headers)``
 * ``SetHttpCredentials(username, password)`` can be used to setup the
   HTTP credentials.
 
+The ``headers`` argument has been added in release 1.2.1.
 
 .. _lua-origin: