mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 12:50:30 +00:00
esp_http_client: Add helper API to read larger data chunks from HTTP Stream
This commit is contained in:
@@ -497,6 +497,20 @@ void esp_http_client_add_auth(esp_http_client_handle_t client);
|
||||
*/
|
||||
bool esp_http_client_is_complete_data_received(esp_http_client_handle_t client);
|
||||
|
||||
/**
|
||||
* @brief Helper API to read larger data chunks
|
||||
* This is a helper API which internally calls `esp_http_client_read` multiple times till the end of data is reached or till the buffer gets full.
|
||||
*
|
||||
* @param[in] client The esp_http_client handle
|
||||
* @param buffer The buffer
|
||||
* @param[in] len The buffer length
|
||||
*
|
||||
* @return
|
||||
* - Length of data was read
|
||||
*/
|
||||
|
||||
int esp_http_client_read_response(esp_http_client_handle_t client, char *buffer, int len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user