summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-03-15 17:31:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-15 19:01:09 (GMT)
commit8ff14ed4127decbee3116aba59d7f8f897c4fe3b (patch)
tree19a7798c9d5169c47ab0667aa786330c72849a60 /http.h
parent49e85e95006e6a8e544372e529834319fcb0987c (diff)
downloadgit-8ff14ed4127decbee3116aba59d7f8f897c4fe3b.zip
git-8ff14ed4127decbee3116aba59d7f8f897c4fe3b.tar.gz
git-8ff14ed4127decbee3116aba59d7f8f897c4fe3b.tar.bz2
http: allow providing extra headers for http requests
Add a way for callers to request that extra headers be included when making http requests. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.h')
-rw-r--r--http.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/http.h b/http.h
index f7bd3b2..4df4a25 100644
--- a/http.h
+++ b/http.h
@@ -172,6 +172,13 @@ struct http_get_options {
* for details.
*/
struct strbuf *base_url;
+
+ /*
+ * If not NULL, contains additional HTTP headers to be sent with the
+ * request. The strings in the list must not be freed until after the
+ * request has completed.
+ */
+ struct string_list *extra_headers;
};
/* Return values for http_get_*() */