From b983e1daebf528443e2a3954cd595fa3664ec93f Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sun, 5 Sep 2021 16:39:07 -0700 Subject: Add support for managed HTTP/S transports (#810) This change uses the newly-exposed Transport interface to use Go's implementation of http.Client instead of httpclient via libgit2. --- remote.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'remote.go') diff --git a/remote.go b/remote.go index fb70f55..3a435d1 100644 --- a/remote.go +++ b/remote.go @@ -168,6 +168,13 @@ type ProxyOptions struct { Url string } +func proxyOptionsFromC(copts *C.git_proxy_options) *ProxyOptions { + return &ProxyOptions{ + Type: ProxyType(copts._type), + Url: C.GoString(copts.url), + } +} + type Remote struct { doNotCompare ptr *C.git_remote -- cgit v1.2.3