Explorar o código

http_async_client: doc review (payload setting)

Giacomo Vacca %!s(int64=8) %!d(string=hai) anos
pai
achega
e2ddfed671

+ 2 - 1
src/modules/http_async_client/doc/http_async_client_admin.xml

@@ -331,7 +331,8 @@ t_newtran();
 http_async_query("http://example.com/test.php?r_uri=$rU&f_uri=$fU", "HTTP_REPLY");
 http_async_query("http://example.com/test.php?r_uri=$rU&f_uri=$fU", "HTTP_REPLY");
 ...
 ...
 # POST
 # POST
-http_async_query("http://example.com/test.php", "{'r_uri':'$rU', 'f_uri':'$fU'}", "HTTP_REPLY");
+$var(payload) = "{'r_uri':'$rU', 'f_uri':'$fU'}";
+http_async_query("http://example.com/test.php", "HTTP_REPLY");
 ...
 ...
 route[HTTP_REPLY] {
 route[HTTP_REPLY] {
     if ($http_ok) {
     if ($http_ok) {