Retoor software development Projects Research SearchXNG
Register Sign In

13 lines
141 B
Makefile
Raw Normal View History

feat: add async HTTP request handling with Wren callback integration and thread pool Implement asynchronous HTTP request infrastructure for the Wren scripting language, including a thread pool with 4 worker threads, request/response queue management, and foreign function bindings for Wren callbacks. Add Response class with foreign methods for error status, status code, body, and JSON access. Include Requests class with static get/post methods that validate callback arity and delegate to foreign implementations. Integrate libcurl-based backend with thread-safe queue operations and platform-specific threading primitives (pthreads on Unix, Windows threads on Win32). Add Makefile targets for building the wren executable with libcurl, pthread, and math library dependencies.
2025-07-29 14:35:38 +02:00
make:
gcc main.c wren.c -lcurl -lm -lpthread -o wren
make3:
g++ main3.c wren.c -lcurl -lm -o wren3
run:
./wren_requests_example
Reference in New Issue Copy Permalink
fad9909371
wrenner/Makefile
Response time: 36ms
Mail Licenses API