mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 14:00:01 -04:00
return a response object from libcurl_fetch
This commit is contained in:
parent
741df8fdcf
commit
6cb70c6760
4 changed files with 138 additions and 20 deletions
|
@ -7,8 +7,8 @@ LIB_DIR="build/curl-wasm/lib/"
|
|||
CACERT_FILE="cacert.pem"
|
||||
OUT_FILE="out/libcurl.js"
|
||||
|
||||
EXPORTED_FUNCS="_main,_perform_request,_copy_bytes"
|
||||
RUNTIME_METHODS="addFunction,removeFunction,allocate"
|
||||
EXPORTED_FUNCS="_main,_perform_request"
|
||||
RUNTIME_METHODS="addFunction,removeFunction,allocate,ALLOC_NORMAL"
|
||||
COMPILER_OPTIONS="-o $OUT_FILE -lcurl -lssl -lcrypto -lcjson -I $INCLUDE_DIR -L $LIB_DIR"
|
||||
EMSCRIPTEN_OPTIONS="-lwebsocket.js -sWEBSOCKET_URL=wss://debug.ading.dev/ws -sASYNCIFY -sALLOW_TABLE_GROWTH -sEXPORTED_FUNCTIONS=$EXPORTED_FUNCS -sEXPORTED_RUNTIME_METHODS=$RUNTIME_METHODS --preload-file $CACERT_FILE"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue