Module: kamailio
Branch: master
Commit: 1dd1b92363c78d24b036be7916d5c58e893d99bf
URL:
https://github.com/kamailio/kamailio/commit/1dd1b92363c78d24b036be7916d5c58…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: 2016-02-16T10:43:38+01:00
http_async_query: fix function name in doc
---
Modified: modules/http_async_client/doc/http_async_client_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/1dd1b92363c78d24b036be7916d5c58…
Patch:
https://github.com/kamailio/kamailio/commit/1dd1b92363c78d24b036be7916d5c58…
---
diff --git a/modules/http_async_client/doc/http_async_client_admin.xml
b/modules/http_async_client/doc/http_async_client_admin.xml
index 45ac3b1..3c3f46b 100644
--- a/modules/http_async_client/doc/http_async_client_admin.xml
+++ b/modules/http_async_client/doc/http_async_client_admin.xml
@@ -389,7 +389,7 @@ t_reply("200", "Ok");
...
tls_verify_host("0");
# host verification is disabled for the next query
-http_query("https://example.com/test.php", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -411,7 +411,7 @@ http_query("https://example.com/test.php",
"HTTP_REPLY");
...
tls_verify_peer("0");
# server identity verification is disabled for the next query
-http_query("https://example.com/test.php", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -433,7 +433,7 @@ http_query("https://example.com/test.php",
"HTTP_REPLY");
...
http_set_timeout("200");
# the server must respond in maximum 200ms, otherwise the query will fail
-http_query("https://example.com/test.php", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -464,7 +464,7 @@ http_append_header("X-Sip-Call-Id: $ci");
# a new 'X-Sip-Call-Id' header will be added to the next query
http_append_header("Content-Type": application/json");
# the curl default 'application/x-www-form-urlencoded' Content-Type will be
replaced
-http_query("https://example.com/test.php", "{'foo':
'bar'}", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "{'foo':
'bar'}", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -486,7 +486,7 @@ http_query("https://example.com/test.php",
"{'foo': 'bar'}", "HTTP_REPLY");
...
http_set_method("PUT");
# the next query will be a HTTP PUT request
-http_query("https://example.com/test.php", "{'foo':
'bar'}", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "{'foo':
'bar'}", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -508,7 +508,7 @@ http_query("https://example.com/test.php",
"{'foo': 'bar'}", "HTTP_REPLY");
...
http_set_tls_client_cert("/etc/kamailio/ssl/cert.pem");
# Next query will use the client cert above
-http_query("https://example.com/test.php", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -530,7 +530,7 @@ http_query("https://example.com/test.php",
"HTTP_REPLY");
...
http_set_tls_client_key("/etc/kamailio/ssl/cert.key");
# Next query will use the client cert key above
-http_query("https://example.com/test.php", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -552,7 +552,7 @@ http_query("https://example.com/test.php",
"HTTP_REPLY");
...
http_set_tls_client_key("/etc/kamailio/ssl/ca/");
# Next query will use the CA certs above
-http_query("https://example.com/test.php", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
...
</programlisting>
</example>
@@ -584,7 +584,7 @@ $http_req(method) = "DELETE";
$http_req(hdr) = "X-Sip-Call-Id: " + $ci;
$http_req(hdr) = "X-Foo: bar"; # add a 2nd header
# the following request will use the above parameters
-http_query("https://example.com/test.php", "HTTP_REPLY");
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
...
</programlisting>
</example>