@@ -81,22 +81,24 @@ class HttpOperation
8181 /* *
8282 * Old-school memory allocator
8383 *
84- * @param contents
85- * @param size
86- * @param nmemb
87- * @param userp
88- * @return
84+ * @param contents Pointer to the data received from the server.
85+ * @param size Size of each data element.
86+ * @param nmemb Number of data elements.
87+ * @param userp Pointer to the user-defined data structure for storing the received data.
88+ * @return The number of bytes actually taken care of. If this differs from size * nmemb, it
89+ * signals an error to libcurl.
8990 */
9091 static size_t WriteMemoryCallback (void *contents, size_t size, size_t nmemb, void *userp);
9192
9293 /* *
9394 * C++ STL std::vector allocator
9495 *
95- * @param ptr
96- * @param size
97- * @param nmemb
98- * @param data
99- * @return
96+ * @param ptr Pointer to the data received from the server.
97+ * @param size Size of each data element.
98+ * @param nmemb Number of data elements.
99+ * @param userp Pointer to the user-defined data structure for storing the received data.
100+ * @return The number of bytes actually taken care of. If this differs from size * nmemb, it
101+ * signals an error to libcurl.
100102 */
101103 static size_t WriteVectorHeaderCallback (void *ptr, size_t size, size_t nmemb, void *userp);
102104 static size_t WriteVectorBodyCallback (void *ptr, size_t size, size_t nmemb, void *userp);
@@ -138,11 +140,9 @@ class HttpOperation
138140 * Create local CURL instance for url and body
139141 * @param method HTTP Method
140142 * @param url HTTP URL
141- * @param callback
142- * @param request_mode Sync or async
143- * @param request Request Headers
144- * @param body Request Body
145- * @param raw_response Whether to parse the response
143+ * @param request_headers Request Headers
144+ * @param request_body Request Body
145+ * @param is_raw_response Whether to parse the response
146146 * @param http_conn_timeout HTTP connection timeout in seconds
147147 * @param reuse_connection Whether connection should be reused or closed
148148 * @param is_log_enabled To intercept some information from cURL request
@@ -232,22 +232,16 @@ class HttpOperation
232232
233233 /* *
234234 * Return a copy of response headers
235- *
236- * @return
237235 */
238236 Headers GetResponseHeaders ();
239237
240238 /* *
241239 * Return a copy of response body
242- *
243- * @return
244240 */
245241 inline const std::vector<uint8_t > &GetResponseBody () const noexcept { return response_body_; }
246242
247243 /* *
248244 * Return a raw copy of response headers+body
249- *
250- * @return
251245 */
252246 inline const std::vector<uint8_t > &GetRawResponse () const noexcept { return raw_response_; }
253247
@@ -265,7 +259,7 @@ class HttpOperation
265259 * Perform curl message, this function only can be called in the polling thread and it can only
266260 * be called when got a CURLMSG_DONE.
267261 *
268- * @param code
262+ * @param code CURLcode
269263 */
270264 void PerformCurlMessage (CURLcode code);
271265
0 commit comments