Add http_client_wait_response for client who don't care about calling poll() directly
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user