cosmopolitan/tool/net
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
..
demo Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
.init.lua Add SSL to redbean 2021-06-24 13:20:50 -07:00
counters.inc Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
dig.c Make minor revisions to previous change 2021-06-30 10:45:27 -07:00
echoserver.c Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
favicon.ico Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
help.txt Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
lsqlite3.c Tune SQLite build for redbean (#97) 2021-06-10 08:00:08 -07:00
net.mk Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
redbean.c Add HTTP/HTTPS Fetch() API to redbean 2021-07-07 21:44:27 -07:00
redbean.png Make improvements 2020-09-14 00:02:34 -07:00