aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_curl_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_curl_lib.h')
-rw-r--r--src/include/gnunet_curl_lib.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h
index 9de58d608..f291d6b14 100644
--- a/src/include/gnunet_curl_lib.h
+++ b/src/include/gnunet_curl_lib.h
@@ -275,9 +275,8 @@ GNUNET_CURL_set_userpass (struct GNUNET_CURL_Context *ctx,
275 275
276 276
277/** 277/**
278 * Force use of the provided TLS client certificate 278 * Force use of the provided TLS client certificate for client authentication
279 * for client authentication for all operations performed 279 * for all operations performed with @a ctx.
280 * with @a ctx.
281 * 280 *
282 * Note that if the provided information is incorrect, 281 * Note that if the provided information is incorrect,
283 * the earliest operation that could fail is 282 * the earliest operation that could fail is
@@ -298,9 +297,9 @@ GNUNET_CURL_set_tlscert (struct GNUNET_CURL_Context *ctx,
298 297
299 298
300/** 299/**
301 * Schedule a CURL request to be executed and call the given @a jcc 300 * Schedule a CURL request to be executed and call the given @a jcc upon its
302 * upon its completion. Note that the context will make use of the 301 * completion. Note that the context will make use of the CURLOPT_PRIVATE
303 * CURLOPT_PRIVATE facility of the CURL @a eh. 302 * facility of the CURL @a eh.
304 * 303 *
305 * This function modifies the CURL handle to add the 304 * This function modifies the CURL handle to add the
306 * "Content-Type: application/json" header if @a add_json is set. 305 * "Content-Type: application/json" header if @a add_json is set.
@@ -345,6 +344,17 @@ GNUNET_CURL_job_add_raw (struct GNUNET_CURL_Context *ctx,
345 344
346 345
347/** 346/**
347 * Add @a extra_headers to the HTTP headers for @a job.
348 *
349 * @param[in,out] job the job to modify
350 * @param extra_headers headers to append
351 */
352void
353GNUNET_CURL_extend_headers (struct GNUNET_CURL_Job *job,
354 const struct curl_slist *extra_headers);
355
356
357/**
348 * Cancel a job. Must only be called before the job completion 358 * Cancel a job. Must only be called before the job completion
349 * callback is called for the respective job. 359 * callback is called for the respective job.
350 * 360 *