aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2025-01-09 15:11:45 -0600
committeramelia squires <[email protected]>2025-01-09 15:11:45 -0600
commitb0fa1d1bcd4c07ce8623a5b6e8fdfb4c06ec6afc (patch)
tree351aa9d767008370f9a80daeada2052beff2444c /src/net.h
parent9a8ae72e94d92dc147bafae027d06e22645606a9 (diff)
http(s) request
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index d2b7435..e7d7d62 100644
--- a/src/net.h
+++ b/src/net.h
@@ -16,6 +16,10 @@
int l_listen(lua_State*);
+int l_request(lua_State*);
+int l_srequest(lua_State*);
+
+
int64_t recv_full_buffer(int client_fd, char** _buffer, int* header_eof, int* state);
int parse_header(char* buffer, int header_eof, parray_t** _table);
@@ -37,6 +41,8 @@ static char* http_codes[600] = {0};
static const luaL_Reg net_function_list [] = {
{"listen",l_listen},
+ {"request",l_request},
+ {"srequest",l_srequest},
{NULL,NULL}
};