tidy
Some checks failed
dropshell-build / build (push) Failing after 6s

This commit is contained in:
j842
2025-06-09 18:14:46 +12:00
parent 10e26e8a6c
commit ede75f5565
6 changed files with 91 additions and 44 deletions

View File

@ -114,4 +114,20 @@ Applications can use:
- MariaDB via connector at `/usr/local/mariadb-connector-c/`
- SQLite3 at `/usr/local/sqlite3/`
All database libraries are statically linked into the final binary.
All database libraries are statically linked into the final binary.
### HTTP Client Utilities
The ipdemo includes a blocking HTTP client utility (`src/http_utils.hpp`) that wraps Drogon's asynchronous HttpClient:
```cpp
#include "http_utils.hpp"
// Make a blocking HTTP GET request
auto response = http_get("example.com", "/api/endpoint", true, 10.0); // HTTPS with 10s timeout
if (response.success && response.status_code == 200) {
std::cout << response.body << std::endl;
}
```
This utility handles the threading complexity and provides a simple synchronous interface for HTTP requests.