summaryrefslogtreecommitdiff
path: root/include/git2/sys
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-09-30 09:17:18 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-09-30 09:17:18 +0200
commit72b7c57093909d3f2333ebbc8c91953fce899b17 (patch)
treea541b94af6e56d6c6d925f79d7259d80762cf53c /include/git2/sys
parentc628ebca63316954b012fc9469e97513759d0353 (diff)
parentd7375662e7b4c885ea4865403e4db4c130e79198 (diff)
downloadlibgit2-72b7c57093909d3f2333ebbc8c91953fce899b17.tar.gz
Merge pull request #3411 from spraints/custom-push-headers
Include custom HTTP headers
Diffstat (limited to 'include/git2/sys')
-rw-r--r--include/git2/sys/transport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/git2/sys/transport.h b/include/git2/sys/transport.h
index 4a75b0832..ca8617f3f 100644
--- a/include/git2/sys/transport.h
+++ b/include/git2/sys/transport.h
@@ -40,6 +40,11 @@ struct git_transport {
git_transport_certificate_check_cb certificate_check_cb,
void *payload);
+ /* Set custom headers for HTTP requests */
+ int (*set_custom_headers)(
+ git_transport *transport,
+ const git_strarray *custom_headers);
+
/* Connect the transport to the remote repository, using the given
* direction. */
int (*connect)(