From: Thayne McCombs <[email protected]>

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 <[email protected]>
---
 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.54.0



Reply via email to