From: Thayne McCombs Date: Mon, 22 Jun 2026 08:41:06 +0000 (-0600) Subject: DOC: lua: remove incorrect init tags X-Git-Tag: v3.5-dev1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29458ba7f1ce78c55e57ebdb89543011b06b13e2;p=thirdparty%2Fhaproxy.git DOC: lua: remove incorrect init tags 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 --- diff --git a/doc/lua-api/index.rst b/doc/lua-api/index.rst index 926d8fe03..e46adc443 100644 --- a/doc/lua-api/index.rst +++ b/doc/lua-api/index.rst @@ -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.