From 29458ba7f1ce78c55e57ebdb89543011b06b13e2 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Mon, 22 Jun 2026 02:41:06 -0600 Subject: [PATCH] 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 --- doc/lua-api/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.47.3