From 2718a5f6740ac3b877b4f188984c7c85b81a680e Mon Sep 17 00:00:00 2001 From: Tuan PM Date: Mon, 16 Jul 2018 10:37:06 +0700 Subject: [PATCH] Add http_buffer description --- components/esp_http_client/esp_http_client.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/components/esp_http_client/esp_http_client.c b/components/esp_http_client/esp_http_client.c index 2e2b25c536..02f6ebce24 100644 --- a/components/esp_http_client/esp_http_client.c +++ b/components/esp_http_client/esp_http_client.c @@ -33,13 +33,17 @@ static const char *TAG = "HTTP_CLIENT"; +/** + * HTTP Buffer + */ typedef struct { - char *data; - int len; - char *raw_data; - int raw_len; - char *output_ptr; + char *data; /*!< The HTTP data received from the server */ + int len; /*!< The HTTP data len received from the server */ + char *raw_data; /*!< The HTTP data after decoding */ + int raw_len; /*!< The HTTP data len after decoding */ + char *output_ptr; /*!< The destination address of the data to be copied to after decoding */ } esp_http_buffer_t; + /** * private HTTP Data structure */