diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-06-06 17:17:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 17:17:08 +0100 |
commit | 60bab8b2d7b61383188c10f5d931dc7b5522d042 (patch) | |
tree | 9647ed69c2e0297aa2665801faa0f4a3e544e094 /src/script/lua_api/l_http.h | |
parent | 7ec0e3df35a11b66b48eababf0123170f2453a50 (diff) | |
download | minetest-60bab8b2d7b61383188c10f5d931dc7b5522d042.tar.gz minetest-60bab8b2d7b61383188c10f5d931dc7b5522d042.tar.bz2 minetest-60bab8b2d7b61383188c10f5d931dc7b5522d042.zip |
Add HTTP API to main menu (#9998)
Diffstat (limited to 'src/script/lua_api/l_http.h')
-rw-r--r-- | src/script/lua_api/l_http.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/lua_api/l_http.h b/src/script/lua_api/l_http.h index 3d9cdad29..c665235a9 100644 --- a/src/script/lua_api/l_http.h +++ b/src/script/lua_api/l_http.h @@ -32,6 +32,9 @@ private: static void read_http_fetch_request(lua_State *L, HTTPFetchRequest &req); static void push_http_fetch_result(lua_State *L, HTTPFetchResult &res, bool completed = true); + // http_fetch_sync({url=, timeout=, post_data=}) + static int l_http_fetch_sync(lua_State *L); + // http_fetch_async({url=, timeout=, post_data=}) static int l_http_fetch_async(lua_State *L); @@ -40,6 +43,9 @@ private: // request_http_api() static int l_request_http_api(lua_State *L); + + // get_http_api() + static int l_get_http_api(lua_State *L); #endif public: |