Module: kamailio
Branch: master
Commit: 584b51fd00c87539eba44e86121fc0df2c465a27
URL:
https://github.com/kamailio/kamailio/commit/584b51fd00c87539eba44e86121fc0d…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Committer: Elena-Ramona Modroiu <ramona(a)asipto.com>
Date: 2024-03-22T07:16:53+01:00
http_client: documentation section for http_client_request_v2pk(...)
---
Modified: src/modules/http_client/doc/http_client_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/584b51fd00c87539eba44e86121fc0d…
Patch:
https://github.com/kamailio/kamailio/commit/584b51fd00c87539eba44e86121fc0d…
---
diff --git a/src/modules/http_client/doc/http_client_admin.xml
b/src/modules/http_client/doc/http_client_admin.xml
index dd647fcb9a1..2fb918d5997 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -984,6 +984,28 @@ http_client_request("GET",
"http://api.com/index.php?r_uri=$(ru{s.escape.param})
switch ($rc) {
...
}
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="http_client.f.http_client_request_v2pk">
+ <title>
+ <function moreinfo="none">http_client_request_v2pk(met, url, body,
hdrs, respv)</function>
+ </title>
+ <para>
+ Similar to http_client_request(), but using HTTP/2 prior-knowledge
+ that the server does not need HTTP/1.1-Upgrade (direct HTTP/2 by
+ seting libcurl option CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE).
+ </para>
+ <example>
+ <title><function>http_client_request_v2pk()</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)");
+switch ($rc) {
+ ...
+}
...
</programlisting>
</example>