smr/src/libkore.h

32 lines
1.0 KiB
C
Raw Permalink Normal View History

2020-05-16 01:10:11 +02:00
struct co_obj {
lua_State *L;
int ref;
2022-02-20 01:08:07 +01:00
int Lref;
int removed;
struct connection *c;
};
2020-05-16 01:10:11 +02:00
int lhttp_response(lua_State *L);
int lhttp_response_co(lua_State *L);
int coroutine_iter_sent(struct netbuf *buf);
int coroutine_iter_next(struct co_obj *obj);
2020-05-16 01:10:11 +02:00
int lhttp_response_header(lua_State *L);
int lhttp_request_header(lua_State *L);
2020-05-16 01:10:11 +02:00
int lhttp_method_text(lua_State *L);
int lhttp_request_get_path(lua_State *L);
int lhttp_request_get_host(lua_State *L);
int lhttp_request_populate_post(lua_State *L);
int lhttp_request_populate_qs(lua_State *L);
2020-05-16 01:10:11 +02:00
int lhttp_response_cookie(lua_State *L);
int lhttp_request_cookie(lua_State *L);
int lhttp_argument_get_string(lua_State *L);
int lhttp_request_get_ip(lua_State *L);
int lhttp_populate_cookies(lua_State *L);
int lhttp_file_get(lua_State *L);
int lhttp_set_flags(lua_State *L);
int lhttp_get_flags(lua_State *L);
2020-05-16 01:10:11 +02:00
int lhttp_populate_multipart_form(lua_State *L);
2020-05-18 16:41:27 +02:00
int lkore_log(lua_State *L);
2020-05-16 01:10:11 +02:00
void load_kore_libs(lua_State *L);
struct http_request* luaL_checkrequest(lua_State *L, int pos);