2020-05-16 01:10:11 +02:00
|
|
|
|
2021-02-09 03:40:57 +01:00
|
|
|
struct co_obj {
|
|
|
|
lua_State *L;
|
|
|
|
int ref;
|
|
|
|
struct connection *c;
|
|
|
|
};
|
2020-05-16 01:10:11 +02:00
|
|
|
int lhttp_response(lua_State *L);
|
2021-02-09 03:40:57 +01:00
|
|
|
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_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);
|
2020-05-17 18:05:00 +02:00
|
|
|
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_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);
|