Perform HTTP request on backend to retrieve secure endpoint location

This commit is contained in:
2024-08-18 16:56:05 +02:00
parent 59ba55793e
commit 3867a38ff9
5 changed files with 201 additions and 5 deletions

@ -0,0 +1,29 @@
/**
* HTTP client
*/
#pragma once
#include <stddef.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct
{
char *url;
} http_request_opts;
/**
* Perform an HTTP request.
*
* Returns NULL in case of failure or the response else. The memory
* must be released by the caller.
*/
char *http_client_exec(const http_request_opts *opts);
#ifdef __cplusplus
}
#endif