Add http_client_wait_response for client who don't care about calling poll() directly

This commit is contained in:
2025-11-23 23:39:48 +01:00
parent f6b2c805c6
commit 9f0560fb9e
5 changed files with 96 additions and 51 deletions
+3
View File
@@ -207,6 +207,9 @@ int http_client_process_events(HTTP_Client *client,
bool http_client_next_response(HTTP_Client *client,
HTTP_Response **response, void **user);
// TODO: comment
int http_client_wait_response(HTTP_Client *client, HTTP_Response **response, void **user);
// Free a response object. You can't access its fields
// again after this.
void http_free_response(HTTP_Response *response);