[sr-dev] git:master:045e5956: Merge pull request #1093 from kamailio/giavac/http_async_client_doc

GitHub noreply at github.com
Wed Apr 26 09:47:22 CEST 2017


Module: kamailio
Branch: master
Commit: 045e595682c56abea550b6a15189690cb0c491e9
URL: https://github.com/kamailio/kamailio/commit/045e595682c56abea550b6a15189690cb0c491e9

Author: Giacomo Vacca <giacomo.vacca at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2017-04-26T09:47:17+02:00

Merge pull request #1093 from kamailio/giavac/http_async_client_doc

http_async_client: doc review (old functions)

---

Modified: src/modules/http_async_client/doc/http_async_client_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/045e595682c56abea550b6a15189690cb0c491e9.diff
Patch: https://github.com/kamailio/kamailio/commit/045e595682c56abea550b6a15189690cb0c491e9.patch

---

diff --git a/src/modules/http_async_client/doc/http_async_client_admin.xml b/src/modules/http_async_client/doc/http_async_client_admin.xml
index a9598c8..b7136a8 100644
--- a/src/modules/http_async_client/doc/http_async_client_admin.xml
+++ b/src/modules/http_async_client/doc/http_async_client_admin.xml
@@ -308,11 +308,11 @@ modparam("http_async_client", "tls_ca_path", "/etc/kamailio/ssl/ca/")
         <para>
 			Parameter <quote>route_name</quote> defines the route to be executed upon reception of HTTP reply, on error or on timeout. 
 			If a transaction exists before calling <emphasis>http_async_query()</emphasis>, it will be paused and resumed in this route, while the routing script execution will be stopped.
-			If executed in a transactionless context, or if <emphasis>http_async_suspend_transaction()</emphasis> or <emphasis>$http_req(suspend)</emphasis> are used to not suspend the transaction, the routing script execution will 
+			If executed in a transactionless context, or if <emphasis>$http_req(suspend)</emphasis> is used not to suspend the transaction, the routing script execution will 
 			continue and the query result will be available in <quote>route_name</quote>.
         </para>
         <para>
-            Return value: 0 (stop script execution) on success in transaction context, 1 (continue script execution) in transaction-less context (or if http_async_suspend_transaction(0) or $http_req(suspend) are used), -1 on error.
+            Return value: 0 (stop script execution) on success in transaction context, 1 (continue script execution) in transaction-less context (or if $http_req(suspend) is used), -1 on error.
         </para>
         <para>
 		    This function can be used from ANY_ROUTE.
@@ -369,7 +369,7 @@ xlog("L_INFO", "received reply for query $http_query_id\n");
 	<para><literal>key</literal> can be one of:</para>
 	<itemizedlist>
 		<listitem><para><emphasis>all</emphasis>: if set to <literal>$null</literal>, resets all the parameters to their default value (the ones defined in modparam)</para></listitem>
-		<listitem><para><emphasis>hdr</emphasis>: sets/modifies/removes a HTTP header (see <emphasis>http_append_header()</emphasis>). N.B.: setting this variable multiple times will add several headers to the query.</para></listitem>
+		<listitem><para><emphasis>hdr</emphasis>: sets/modifies/removes a HTTP header. N.B.: setting this variable multiple times will add several headers to the query.</para></listitem>
 		<listitem><para><emphasis>body</emphasis>: sets/modifies/removes the request body</para></listitem>
 		<listitem><para><emphasis>method</emphasis>: sets the HTTP method: either "GET", "POST", "PUT" or "DELETE" (these are the supported methods). (Note: if the method is not set, curl will use GET, or POST if a body is specified)</para></listitem>
 		<listitem><para><emphasis>timeout</emphasis>: sets the HTTP timeout</para></listitem>




More information about the sr-dev mailing list