diff options
| author | lhchavez <[email protected]> | 2021-09-05 16:39:07 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-09-05 16:39:07 -0700 |
| commit | b983e1daebf528443e2a3954cd595fa3664ec93f (patch) | |
| tree | 51ed7f7c359c9548dad7afa1a445749380d59f66 /remote.go | |
| parent | f1fa96c7b7f548389c7560d3a1a0bce83be56c9f (diff) | |
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.
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |
