You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,11 @@ Versioning is strictly based on [Semantic Versioning](https://semver.org/)
103
103
* push commit and tag
104
104
* upload rock to luarocks: `luarocks upload rockspecs/[name] --api-key=abc`
105
105
106
+
### 3.1.1 (19-Nov-2025)
107
+
108
+
* Fix: change default headers to empty table instead of an array to remove deprecation notice [#174](https://github.com/Kong/lua-resty-healthcheck/pull/174)
109
+
110
+
106
111
### 3.1.0 (19-Jun-2024)
107
112
108
113
* Feat: remove version check of resty.events [#162](https://github.com/Kong/lua-resty-healthcheck/pull/162)
(optional) the type of check, either “passive” or “active”, default “passive”.
606
+
(optional) the type of check, either "passive" or "active", default "passive".
604
607
</li>
605
608
</ul>
606
609
@@ -636,7 +639,7 @@ <h3>Parameters:</h3>
636
639
(optional) hostname of the target being checked.
637
640
</li>
638
641
<li><spanclass="parameter">check</span>
639
-
(optional) the type of check, either “passive” or “active”, default “passive”.
642
+
(optional) the type of check, either "passive" or "active", default "passive".
640
643
</li>
641
644
</ul>
642
645
@@ -769,7 +772,7 @@ <h3>Returns:</h3>
769
772
It will be started upon creation.</p>
770
773
771
774
<p><em>NOTE</em>: the returned <code>checker</code> object must be anchored, if not it will be
772
-
removed by Lua’s garbage collector and the healthchecks will cease to run.
775
+
removed by Lua's garbage collector and the healthchecks will cease to run.
773
776
774
777
775
778
<h3>Parameters:</h3>
@@ -778,35 +781,34 @@ <h3>Parameters:</h3>
778
781
table with checker options. Options are:</p>
779
782
780
783
<ul>
781
-
<li><code>name</code>: name of the health checker</li>
782
-
<li><code>shm_name</code>: the name of the <code>lua_shared_dict</code> specified in the Nginx configuration to use</li>
783
-
<li><code>ssl_cert</code>: certificate for mTLS connections (string or parsed object)</li>
784
-
<li><code>ssl_key</code>: key for mTLS connections (string or parsed object)</li>
785
-
<li><code>checks.active.type</code>: “http”, “https” or “tcp” (default is “http”)</li>
786
-
<li><code>checks.active.timeout</code>: socket timeout for active checks (in seconds)</li>
787
-
<li><code>checks.active.concurrency</code>: number of targets to check concurrently</li>
788
-
<li><code>checks.active.http_path</code>: path to use in <code>GET</code> HTTP request to run on active checks</li>
789
-
<li><code>checks.active.https_sni</code>: SNI server name incase of HTTPS</li>
790
-
<li><code>checks.active.https_verify_certificate</code>: boolean indicating whether to verify the HTTPS certificate</li>
791
-
<li><code>checks.active.headers</code>: one or more lists of values indexed by header name</li>
792
-
<li><code>checks.active.healthy.interval</code>: interval between checks for healthy targets (in seconds)</li>
793
-
<li><code>checks.active.healthy.http_statuses</code>: which HTTP statuses to consider a success</li>
794
-
<li><code>checks.active.healthy.successes</code>: number of successes to consider a target healthy</li>
795
-
<li><code>checks.active.unhealthy.interval</code>: interval between checks for unhealthy targets (in seconds)</li>
796
-
<li><code>checks.active.unhealthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
797
-
<li><code>checks.active.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
798
-
<li><code>checks.active.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
799
-
<li><code>checks.active.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
800
-
<li><code>checks.passive.type</code>: “http”, “https” or “tcp” (default is “http”; for passive checks, “http” and “https” are equivalent)</li>
801
-
<li><code>checks.passive.healthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
802
-
<li><code>checks.passive.healthy.successes</code>: number of successes to consider a target healthy</li>
803
-
<li><code>checks.passive.unhealthy.http_statuses</code>: which HTTP statuses to consider a success</li>
804
-
<li><code>checks.passive.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
805
-
<li><code>checks.passive.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
806
-
<li><code>checks.passive.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
784
+
<li><code>name</code>: name of the health checker</li>
785
+
<li><code>shm_name</code>: the name of the <code>lua_shared_dict</code> specified in the Nginx configuration to use</li>
786
+
<li><code>ssl_cert</code>: certificate for mTLS connections (string or parsed object)</li>
787
+
<li><code>ssl_key</code>: key for mTLS connections (string or parsed object)</li>
788
+
<li><code>checks.active.type</code>: "http", "https" or "tcp" (default is "http")</li>
789
+
<li><code>checks.active.timeout</code>: socket timeout for active checks (in seconds)</li>
790
+
<li><code>checks.active.concurrency</code>: number of targets to check concurrently</li>
791
+
<li><code>checks.active.http_path</code>: path to use in <code>GET</code> HTTP request to run on active checks</li>
792
+
<li><code>checks.active.https_sni</code>: SNI server name incase of HTTPS</li>
793
+
<li><code>checks.active.https_verify_certificate</code>: boolean indicating whether to verify the HTTPS certificate</li>
794
+
<li><code>checks.active.headers</code>: one or more lists of values indexed by header name</li>
795
+
<li><code>checks.active.healthy.interval</code>: interval between checks for healthy targets (in seconds)</li>
796
+
<li><code>checks.active.healthy.http_statuses</code>: which HTTP statuses to consider a success</li>
797
+
<li><code>checks.active.healthy.successes</code>: number of successes to consider a target healthy</li>
798
+
<li><code>checks.active.unhealthy.interval</code>: interval between checks for unhealthy targets (in seconds)</li>
799
+
<li><code>checks.active.unhealthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
800
+
<li><code>checks.active.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
801
+
<li><code>checks.active.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
802
+
<li><code>checks.active.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
803
+
<li><code>checks.passive.type</code>: "http", "https" or "tcp" (default is "http"; for passive checks, "http" and "https" are equivalent)</li>
804
+
<li><code>checks.passive.healthy.http_statuses</code>: which HTTP statuses to consider a failure</li>
805
+
<li><code>checks.passive.healthy.successes</code>: number of successes to consider a target healthy</li>
806
+
<li><code>checks.passive.unhealthy.http_statuses</code>: which HTTP statuses to consider a success</li>
807
+
<li><code>checks.passive.unhealthy.tcp_failures</code>: number of TCP failures to consider a target unhealthy</li>
808
+
<li><code>checks.passive.unhealthy.timeouts</code>: number of timeouts to consider a target unhealthy</li>
809
+
<li><code>checks.passive.unhealthy.http_failures</code>: number of HTTP failures to consider a target unhealthy</li>
807
810
</ul>
808
811
809
-
810
812
<p> If any of the health counters above (e.g. <code>checks.passive.unhealthy.timeouts</code>)
811
813
is set to zero, the according category of checks is not taken to account.
812
814
This way active or passive health checks can be disabled selectively.
@@ -830,7 +832,7 @@ <h3>Returns:</h3>
830
832
</div><!-- id="main" -->
831
833
<divid="about">
832
834
<i>generated by <ahref="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
0 commit comments