diff --git a/tool/net/help.txt b/tool/net/help.txt index 57318ccb7..b71c9cbf0 100644 --- a/tool/net/help.txt +++ b/tool/net/help.txt @@ -766,7 +766,8 @@ FUNCTIONS GetAssetComment(path:str) → str 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 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 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 - as GetVersion (deprecated). + HTTP/0.9, 10 for HTTP/1.0, or 11 for HTTP/1.1. + Also available as GetVersion (deprecated). GetRandomBytes([length:int]) → str Returns string with the specified number of random bytes (1..256). diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 1fd4f913e..c579461cb 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -5038,7 +5038,6 @@ static const luaL_Reg kLuaFuncs[] = { {"GetBody", LuaGetBody}, // {"GetClientAddr", LuaGetClientAddr}, // {"GetClientFd", LuaGetClientFd}, // - {"GetComment", LuaGetAssetComment}, // {"GetCookie", LuaGetCookie}, // {"GetCpuCore", LuaGetCpuCore}, // {"GetCpuCount", LuaGetCpuCount}, // @@ -5061,7 +5060,6 @@ static const luaL_Reg kLuaFuncs[] = { {"GetParams", LuaGetParams}, // {"GetPass", LuaGetPass}, // {"GetPath", LuaGetPath}, // - {"GetPayload", LuaGetBody}, // {"GetPort", LuaGetPort}, // {"GetRandomBytes", LuaGetRandomBytes}, // {"GetRedbeanVersion", LuaGetRedbeanVersion}, // @@ -5072,7 +5070,6 @@ static const luaL_Reg kLuaFuncs[] = { {"GetTime", LuaGetTime}, // {"GetUrl", LuaGetUrl}, // {"GetUser", LuaGetUser}, // - {"GetVersion", LuaGetHttpVersion}, // {"GetZipPaths", LuaGetZipPaths}, // {"HasControlCodes", LuaHasControlCodes}, // {"HasParam", LuaHasParam}, // @@ -5165,6 +5162,11 @@ static const luaL_Reg kLuaFuncs[] = { {"ProgramSslRequired", LuaProgramSslRequired}, // {"ProgramSslTicketLifetime", LuaProgramSslTicketLifetime}, // #endif + // deprecated + {"GetPayload", LuaGetBody}, // + {"GetComment", LuaGetAssetComment}, // + {"GetVersion", LuaGetHttpVersion}, // + }; static const luaL_Reg kLuaLibs[] = {