From 8ff14ed4127decbee3116aba59d7f8f897c4fe3b Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Thu, 15 Mar 2018 10:31:38 -0700 Subject: 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 Signed-off-by: Junio C Hamano --- http.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'http.h') diff --git a/http.h b/http.h index f7bd3b26b0..4df4a25e1a 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_*() */ -- cgit v1.2.3