This commit is contained in:
18
CLAUDE.md
18
CLAUDE.md
@ -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.
|
Reference in New Issue
Block a user