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 <astrothayne@gmail.com>
This commit is contained in:
Thayne McCombs 2026-06-22 02:41:06 -06:00 committed by Willy Tarreau
parent 94f20d494c
commit 29458ba7f1

View 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.