Add GetCookie to redbean Lua (#269)

This commit is contained in:
Paul Kulchenko 2021-09-11 16:46:21 -07:00 committed by GitHub
parent 559b024e1d
commit 1b93066883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

View file

@ -604,6 +604,9 @@ FUNCTIONS
Returns comment text associated with asset in the ZIP central
directory.
GetCookie(name:str) → str
Returns cookie value.
GetRemoteAddr() → ip:uint32,port:uint16
Returns client ip4 address and port, e.g. 0x01020304,31337 would
represent 1.2.3.4:31337. This is the same as GetClientAddr except