aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-06-13 18:38:08 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-06-13 18:39:07 +0200
commit1a7fbccc8b3fd6fc070d134892e736503286ef1b (patch)
tree95390f15a2581e43ebbc83fb0ccd9ffcf7c4ff8e /src/include
parente532e871ca89b8a78700756fef1284de15f479c8 (diff)
downloadgnunet-1a7fbccc8b3fd6fc070d134892e736503286ef1b.tar.gz
gnunet-1a7fbccc8b3fd6fc070d134892e736503286ef1b.zip
Expanding libgnunetcurl.
Adding a method to let the user append a custom request header.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_curl_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h
index 17e9aeea4..2b2442a52 100644
--- a/src/include/gnunet_curl_lib.h
+++ b/src/include/gnunet_curl_lib.h
@@ -99,6 +99,17 @@ GNUNET_CURL_get_select_info (struct GNUNET_CURL_Context *ctx,
99 99
100 100
101/** 101/**
102 * Add custom request header.
103 *
104 * @param ctx cURL context.
105 * @param header header string; will be given to the context AS IS.
106 * @return #GNUNET_OK if no errors occurred, #GNUNET_SYSERR otherwise.
107 */
108int
109GNUNET_CURL_append_header (struct GNUNET_CURL_Context *ctx,
110 const char *header);
111
112/**
102 * Run the main event loop for the CURL interaction. 113 * Run the main event loop for the CURL interaction.
103 * 114 *
104 * @param ctx the library context 115 * @param ctx the library context