]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: lua: remove incorrect init tags
authorThayne McCombs <astrothayne@gmail.com>
Mon, 22 Jun 2026 08:41:06 +0000 (02:41 -0600)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Jun 2026 05:03:30 +0000 (07:03 +0200)
The `core.httpclient()` and `core.tcp()` functions aren't actually
available in the init context, as they require the event loop to be set
up.

As such, remove "init" form the list of contexts for those functions.

It probably makes sense to backport this to previous versions.

Fixes: #3420
Signed-off-by: Thayne McCombs <astrothayne@gmail.com>
doc/lua-api/index.rst

index 926d8fe035d3b1a430326af1d6862ac877b982d8..e46adc4432389a76a712b5c9ca2c6b8db18f3843 100644 (file)
@@ -883,7 +883,7 @@ Core class
 
 .. js:function:: core.tcp()
 
-  **context**: init, task, action
+  **context**: task, action
 
   This function returns a new object of a *socket* class.
 
@@ -891,7 +891,7 @@ Core class
 
 .. js:function:: core.httpclient()
 
-  **context**: init, task, action
+  **context**: task, action
 
   This function returns a new object of a *httpclient* class.