Mercurial > hg > orthanc
diff OrthancFramework/Sources/Lua/LuaContext.h @ 5016:c89ffa13173e
Lua: new "SetHttpTimeout" function
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 13 Jun 2022 16:55:22 +0200 |
parents | 43e613a7756b |
children | 0ea402b4d901 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Lua/LuaContext.h Fri Jun 10 06:37:48 2022 +0200 +++ b/OrthancFramework/Sources/Lua/LuaContext.h Mon Jun 13 16:55:22 2022 +0200 @@ -70,6 +70,7 @@ #if ORTHANC_ENABLE_CURL == 1 static int SetHttpCredentials(lua_State *state); + static int SetHttpTimeout(lua_State *state); static int CallHttpPostOrPut(lua_State *state, HttpMethod method); static int CallHttpGet(lua_State *state); @@ -105,11 +106,6 @@ bool IsExistingFunction(const char* name); -#if ORTHANC_ENABLE_CURL == 1 - void SetHttpCredentials(const char* username, - const char* password); -#endif - void RegisterFunction(const char* name, lua_CFunction func);