Commit Graph

2 Commits

Author SHA1 Message Date
fad9909371 chore: remove entire httplib.h, socket_backend.cpp, and socket_backend_20250729_141833.c files while adding response body print to requests_example.wren 2025-07-29 12:38:46 +00:00
0461db7049 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 12:35:38 +00:00