diff options
| author | ame <[email protected]> | 2025-06-12 02:10:10 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-06-12 02:10:10 -0500 |
| commit | 8e7257aac8b30aaa57577770fd636e784361e35d (patch) | |
| tree | 71f7cb33f56a455bac2734bd53b483aa8bb7b27b /src/test.c | |
| parent | a2e8051d4cf6e46310e2e8aab83fee991560d8c0 (diff) | |
fix some net code, add streaming to some requests
Diffstat (limited to 'src/test.c')
| -rw-r--r-- | src/test.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; +} |
