Module: kamailio
Branch: master
Commit: fdb9c938639b3fea29b8c1ba6e6e412a5da8a7f3
URL:
https://github.com/kamailio/kamailio/commit/fdb9c938639b3fea29b8c1ba6e6e412…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-07T10:27:11+02:00
http_client: docs for $httprhdr(name)
---
Modified: src/modules/http_client/doc/http_client_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/fdb9c938639b3fea29b8c1ba6e6e412…
Patch:
https://github.com/kamailio/kamailio/commit/fdb9c938639b3fea29b8c1ba6e6e412…
---
diff --git a/src/modules/http_client/doc/http_client_admin.xml
b/src/modules/http_client/doc/http_client_admin.xml
index f5eb42f7b91..6424582074c 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -716,7 +716,8 @@ modparam("http_client", "netinterface",
"eth0")
<section id="http_client.p.response_headers">
<title><varname>response_headers</varname> (int)</title>
<para>
- Set to 1 in order to store HTTP response headers.
+ Set to 1 in order to store HTTP response headers. A header value
+ can be retrieved with $httprhdr(name).
</para>
<para>
<emphasis>
@@ -1031,7 +1032,7 @@ switch ($rc) {
</section>
</section>
<section>
- <title>Pseudovariables</title>
+ <title>Pseudo-Variables</title>
<section >
<title>
<function moreinfo="none">$curlerror(error)</function>
@@ -1044,6 +1045,15 @@ switch ($rc) {
http://curl.haxx.se/libcurl/c/libcurl-errors.html
</para>
</section>
+ <section >
+ <title>
+ <function moreinfo="none">$httprhdr(name)</function>
+ </title>
+ <para>
+ Return response header value. It requires response_headers parameter
+ to be set to 1.
+ </para>
+ </section>
</section>
<section>
<title>RPC Commands</title>