mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Polish redbean APIs and docs (#446)
* Remove undocumented ProgramSslCompression * Rename GetLastModified to GetAssetLastModified * Rename IsCompressed to IsAssetCompressed * Reorganize currently deprecated functions * Update sockopt documentation for clarity
This commit is contained in:
parent
a9d77362f9
commit
1bce1ca2e0
3 changed files with 71 additions and 66 deletions
|
@ -317,7 +317,7 @@ local function main()
|
|||
if not IsAcceptablePath(paths[i]) then
|
||||
Write(' <small>[BLOCKED]</small>')
|
||||
end
|
||||
if not IsCompressed(paths[i]) then
|
||||
if not IsAssetCompressed(paths[i]) then
|
||||
Write(' <small>[UNCOMPRESSED]</small>')
|
||||
end
|
||||
if (GetAssetMode(paths[i]) & 0xF000) == 0x4000 then
|
||||
|
@ -325,7 +325,7 @@ local function main()
|
|||
end
|
||||
Write('<br>\r\n')
|
||||
Write('Modified: ')
|
||||
Write(FormatHttpDateTime(GetLastModifiedTime(paths[i])))
|
||||
Write(FormatHttpDateTime(GetAssetLastModifiedTime(paths[i])))
|
||||
Write('<br>\r\n')
|
||||
Write('Mode: ')
|
||||
Write("0%o" % {GetAssetMode(paths[i])})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue