mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-01 06:28:21 +00:00
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
14 lines
466 B
C
14 lines
466 B
C
#ifndef COSMOPOLITAN_NET_HTTPS_HTTPS_H_
|
|
#define COSMOPOLITAN_NET_HTTPS_HTTPS_H_
|
|
#include "libc/time/struct/tm.h"
|
|
#include "third_party/mbedtls/x509_crt.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
char *DescribeSslVerifyFailure(int);
|
|
mbedtls_x509_crt *GetSslRoots(void);
|
|
void FormatSslTime(char[restrict hasatleast 16], struct tm *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_NET_HTTPS_HTTPS_H_ */
|