From 8e7257aac8b30aaa57577770fd636e784361e35d Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 12 Jun 2025 02:10:10 -0500 Subject: fix some net code, add streaming to some requests --- src/test.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/test.c') diff --git a/src/test.c b/src/test.c index 4403e60..9ae5e5b 100644 --- a/src/test.c +++ b/src/test.c @@ -55,3 +55,15 @@ int l_upvalue_key_table(lua_State* L){ lua_upvalue_key_table(L, 1); return 1; } + +int rea(uint64_t len, str** _output, void** v){ + str* output = *_output; + str_push(output, "awa!!!! test\n"); + *_output = output; + return 1; +} + +int l_stream_test(lua_State* L){ + luaI_newstream(L, rea, NULL, 0); + return 1; +} -- cgit v1.2.3