Reorganize currently deprecated functions

This commit is contained in:
Paul Kulchenko 2022-06-22 22:08:48 -07:00
parent b3e68bc059
commit 36b271cbc2
2 changed files with 9 additions and 6 deletions

View file

@ -766,7 +766,8 @@ FUNCTIONS
GetAssetComment(path:str) → str GetAssetComment(path:str) → str
Returns comment text associated with asset in the ZIP central Returns comment text associated with asset in the ZIP central
directory. Also available as GetComment (deprecated). directory.
Also available as GetComment (deprecated).
GetAssetMode(path:str) → int GetAssetMode(path:str) → int
Returns UNIX-style octal mode for ZIP asset (or local file if the Returns UNIX-style octal mode for ZIP asset (or local file if the
@ -932,8 +933,8 @@ v See khttprepeatable.c. Those headers will not be folded. Standard
GetHttpVersion() → int GetHttpVersion() → int
Returns the request HTTP protocol version, which can be 9 for Returns the request HTTP protocol version, which can be 9 for
HTTP/0.9, 10 for HTTP/1.0, or 11 for HTTP/1.1. Also available HTTP/0.9, 10 for HTTP/1.0, or 11 for HTTP/1.1.
as GetVersion (deprecated). Also available as GetVersion (deprecated).
GetRandomBytes([length:int]) → str GetRandomBytes([length:int]) → str
Returns string with the specified number of random bytes (1..256). Returns string with the specified number of random bytes (1..256).

View file

@ -5038,7 +5038,6 @@ static const luaL_Reg kLuaFuncs[] = {
{"GetBody", LuaGetBody}, // {"GetBody", LuaGetBody}, //
{"GetClientAddr", LuaGetClientAddr}, // {"GetClientAddr", LuaGetClientAddr}, //
{"GetClientFd", LuaGetClientFd}, // {"GetClientFd", LuaGetClientFd}, //
{"GetComment", LuaGetAssetComment}, //
{"GetCookie", LuaGetCookie}, // {"GetCookie", LuaGetCookie}, //
{"GetCpuCore", LuaGetCpuCore}, // {"GetCpuCore", LuaGetCpuCore}, //
{"GetCpuCount", LuaGetCpuCount}, // {"GetCpuCount", LuaGetCpuCount}, //
@ -5061,7 +5060,6 @@ static const luaL_Reg kLuaFuncs[] = {
{"GetParams", LuaGetParams}, // {"GetParams", LuaGetParams}, //
{"GetPass", LuaGetPass}, // {"GetPass", LuaGetPass}, //
{"GetPath", LuaGetPath}, // {"GetPath", LuaGetPath}, //
{"GetPayload", LuaGetBody}, //
{"GetPort", LuaGetPort}, // {"GetPort", LuaGetPort}, //
{"GetRandomBytes", LuaGetRandomBytes}, // {"GetRandomBytes", LuaGetRandomBytes}, //
{"GetRedbeanVersion", LuaGetRedbeanVersion}, // {"GetRedbeanVersion", LuaGetRedbeanVersion}, //
@ -5072,7 +5070,6 @@ static const luaL_Reg kLuaFuncs[] = {
{"GetTime", LuaGetTime}, // {"GetTime", LuaGetTime}, //
{"GetUrl", LuaGetUrl}, // {"GetUrl", LuaGetUrl}, //
{"GetUser", LuaGetUser}, // {"GetUser", LuaGetUser}, //
{"GetVersion", LuaGetHttpVersion}, //
{"GetZipPaths", LuaGetZipPaths}, // {"GetZipPaths", LuaGetZipPaths}, //
{"HasControlCodes", LuaHasControlCodes}, // {"HasControlCodes", LuaHasControlCodes}, //
{"HasParam", LuaHasParam}, // {"HasParam", LuaHasParam}, //
@ -5165,6 +5162,11 @@ static const luaL_Reg kLuaFuncs[] = {
{"ProgramSslRequired", LuaProgramSslRequired}, // {"ProgramSslRequired", LuaProgramSslRequired}, //
{"ProgramSslTicketLifetime", LuaProgramSslTicketLifetime}, // {"ProgramSslTicketLifetime", LuaProgramSslTicketLifetime}, //
#endif #endif
// deprecated
{"GetPayload", LuaGetBody}, //
{"GetComment", LuaGetAssetComment}, //
{"GetVersion", LuaGetHttpVersion}, //
}; };
static const luaL_Reg kLuaLibs[] = { static const luaL_Reg kLuaLibs[] = {