diff options
| author | amelia squires <[email protected]> | 2025-01-09 15:11:45 -0600 |
|---|---|---|
| committer | amelia squires <[email protected]> | 2025-01-09 15:11:45 -0600 |
| commit | 781639fea8a3189b1bea5d7bdf1e2e7c95d4dd39 (patch) | |
| tree | 351aa9d767008370f9a80daeada2052beff2444c /src/net.h | |
| parent | 09e7dc5efdd20bd3c48427e6a1915255f0685f02 (diff) | |
http(s) request
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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}
};
|
