cosmopolitan/tool/net/demo
Justine Tunney c89bc56f6a 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-07 21:44:27 -07:00
..
.lua Make default redbean lua module path zip:.lua/... 2021-05-16 19:05:35 -07:00
.init.lua Add SSL to redbean 2021-06-24 13:20:50 -07:00
.reload.lua Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
404.html Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
fetch.lua Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
hello.lua Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
index.html Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
printpayload.lua Add chunked transfer decoding to redbean 2021-07-05 01:05:10 -07:00
redbean-form.lua Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
redbean-xhr.lua Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
redbean.css Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
redbean.lua Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
seekable.txt Support OnHttpRequest Lua callback 2021-04-24 17:27:12 -07:00
sql.lua Tune SQLite build for redbean (#97) 2021-06-10 08:00:08 -07:00
virtualbean.html Set up http://redbean.justine.lol/ demo server 2021-04-24 19:49:49 -07:00