2025-02-26 08:47:09 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <iron_global.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2025-10-15 13:06:40 +02:00
|
|
|
#define IRON_HTTP_GET 0
|
2025-03-09 17:02:12 +01:00
|
|
|
#define IRON_HTTP_POST 1
|
2025-02-26 08:47:09 +01:00
|
|
|
|
2025-09-12 15:29:02 +02:00
|
|
|
typedef void (*iron_http_callback_t)(const char *body, void *callbackdata);
|
2025-02-26 08:47:09 +01:00
|
|
|
|
2025-10-15 13:06:40 +02:00
|
|
|
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);
|