Make net request async on windows

This commit is contained in:
luboslenco
2025-11-19 20:01:58 +01:00
parent 557deb87d1
commit bd7d6c0f67
10 changed files with 247 additions and 89 deletions
+6 -4
View File
@@ -3,9 +3,11 @@
#include <iron_global.h>
#include <stdbool.h>
#define IRON_HTTP_GET 0
#define IRON_HTTP_POST 1
#define IRON_HTTPS_GET 0
#define IRON_HTTPS_POST 1
typedef void (*iron_http_callback_t)(const char *body, void *callbackdata);
typedef void (*iron_https_callback_t)(const char *body, void *callbackdata);
void iron_https_request(const char *url_base, const char *url_path, const char *data, int port, int method, iron_http_callback_t callback, void *callbackdata);
void iron_net_request(const char *url_base, const char *url_path, const char *data, int port, int method, iron_https_callback_t callback, void *callbackdata, const char *dst_path);
void iron_net_update();