Module: kamailio
Branch: master
Commit: d55cd7e613c787ce0dd91abad036d4ecd7556023
URL:
https://github.com/kamailio/kamailio/commit/d55cd7e613c787ce0dd91abad036d4e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-08T17:03:19+02:00
http_client: docs for http_client_response_headers_clear()
---
Modified: src/modules/http_client/doc/http_client_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/d55cd7e613c787ce0dd91abad036d4e…
Patch:
https://github.com/kamailio/kamailio/commit/d55cd7e613c787ce0dd91abad036d4e…
---
diff --git a/src/modules/http_client/doc/http_client_admin.xml
b/src/modules/http_client/doc/http_client_admin.xml
index 0a8f147eb0e..e81d912c11e 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -1047,6 +1047,26 @@ http_client_response_headers_set("1");
http_client_request_v2pk("GET",
"http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s.escape.param})",
"", "X-Token: abc", "$var(result)");
xinfo("response header: $httprhdr(X-Header)\n");
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="http_client.f.http_client_response_headers_clear">
+ <title>
+ <function
moreinfo="none">http_client_response_headers_clear()</function>
+ </title>
+ <para>
+ Clear stored response headers, if not explicitely done, it happens
+ when the next HTTP request is performed.
+ </para>
+ <example>
+ <title><function>http_client_response_headers_clear()</function>
usage</title>
+ <programlisting format="linespecific">
+...
+http_client_request_v2pk("GET",
"http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s.escape.param})",
+ "", "X-Token: abc", "$var(result)");
+xinfo("response header: $httprhdr(X-Header)\n");
+http_client_response_headers_clear();
...
</programlisting>
</example>