This website requires JavaScript.
Explore
Help
Sign in
mirrors
/
cosmopolitan
Watch
1
Star
0
Fork
You've already forked cosmopolitan
0
mirror of
https://github.com/jart/cosmopolitan.git
synced
2025-02-01 03:53:33 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
7341336b1a
cosmopolitan
/
tool
/
net
/
demo
/
hello.lua
5 lines
89 B
Lua
Raw
Normal View
History
Unescape
Escape
Add HTTP/HTTPS Fetch() API to redbean You can now say the following in your redbean Lua code: status,headers,payload = Fetch("https://foo.example") The following Lua APIs have been introduced: - Fetch(str) → str,{str:str},str - GetHttpReason(int) → str - GetHttpReason(int) → str - ProgramSslFetchVerify(bool) - ProgramSslClientVerify(bool) The following flags have been introduced: - `-j` enables client SSL verification - `-k` disables Fetch() SSL verification - `-t INT` may now be passed a negative value for keepalive Lua exceptions now invoke Cosmopolitan's garbage collector when unwinding the stack. So it's now safe to use _gc() w/ Lua 𝔱𝔥𝔯𝔬𝔴 See #97
2021-07-08 04:44:27 +00:00
if
not
IsPublicIp
(
GetClientAddr
(
)
)
then
StoreAsset
(
'
/hi
'
,
'
sup
'
)
end
Make default redbean lua module path zip:.lua/... Fixes #157
2021-05-17 02:05:35 +00:00
mymodule.hello
(
)
Reference in a new issue
Copy permalink