Browse code

modules: readme files regenerated - ruxc ... [skip ci]

Kamailio Dev authored on 24/07/2021 06:31:20
Showing 1 changed files
... ...
@@ -28,6 +28,7 @@ Daniel-Constantin Mierla
28 28
 
29 29
               3.1. http_timeout (int)
30 30
               3.2. http_tlsmode (int)
31
+              3.3. http_reuse (int)
31 32
 
32 33
         4. Functions
33 34
 
... ...
@@ -40,9 +41,10 @@ Daniel-Constantin Mierla
40 41
 
41 42
    1.1. Set http_timeout parameter
42 43
    1.2. Set http_tlsmode parameter
43
-   1.3. ruxc_http_get() usage
44
-   1.4. ruxc_http_post() usage
45
-   1.5. Libruxc Usage
44
+   1.3. Set http_reuse parameter
45
+   1.4. ruxc_http_get() usage
46
+   1.5. ruxc_http_post() usage
47
+   1.6. Libruxc Usage
46 48
 
47 49
 Chapter 1. Admin Guide
48 50
 
... ...
@@ -58,6 +60,7 @@ Chapter 1. Admin Guide
58 60
 
59 61
         3.1. http_timeout (int)
60 62
         3.2. http_tlsmode (int)
63
+        3.3. http_reuse (int)
61 64
 
62 65
    4. Functions
63 66
 
... ...
@@ -95,6 +98,7 @@ Chapter 1. Admin Guide
95 98
 
96 99
    3.1. http_timeout (int)
97 100
    3.2. http_tlsmode (int)
101
+   3.3. http_reuse (int)
98 102
 
99 103
 3.1. http_timeout (int)
100 104
 
... ...
@@ -120,6 +124,20 @@ modparam("ruxc", "http_timeout", 2000)
120 124
 modparam("ruxc", "http_tlsmode", 1)
121 125
 ...
122 126
 
127
+3.3. http_reuse (int)
128
+
129
+   Set to 1 in order to reuse the connection for all requests (each
130
+   Kamailio process has its own connection). Useful to avoid TCP connect
131
+   (and TLS handshake) when all requests are performed against the same
132
+   HTTP/S server.
133
+
134
+   Default value is 0 (new connection for each request).
135
+
136
+   Example 1.3. Set http_reuse parameter
137
+...
138
+modparam("ruxc", "http_reuse", 1)
139
+...
140
+
123 141
 4. Functions
124 142
 
125 143
    4.1. ruxc_http_get(url, hdrs, respv)
... ...
@@ -137,7 +155,7 @@ modparam("ruxc", "http_tlsmode", 1)
137 155
 
138 156
    This function can be used from ANY_ROUTE.
139 157
 
140
-   Example 1.3. ruxc_http_get() usage
158
+   Example 1.4. ruxc_http_get() usage
141 159
 ...
142 160
 ruxc_http_get("http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s
143 161
 .escape.param})",
... ...
@@ -160,7 +178,7 @@ switch ($rc) {
160 178
 
161 179
    This function can be used from ANY_ROUTE.
162 180
 
163
-   Example 1.4. ruxc_http_post() usage
181
+   Example 1.5. ruxc_http_post() usage
164 182
 ...
165 183
 ruxc_http_post("http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{
166 184
 s.escape.param})",
... ...
@@ -183,7 +201,7 @@ switch ($rc) {
183 201
    installed and its environment configured, then run the following
184 202
    commands:
185 203
 
186
-   Example 1.5. Libruxc Usage
204
+   Example 1.6. Libruxc Usage
187 205
 ...
188 206
 git clone https://github.com/miconda/ruxc
189 207
 cd ruxc