MCPcopy Create free account
hub / github.com/cli/cli / proxyURL

Method proxyURL

script/ghmock/server.go:90–92  ·  view source on GitHub ↗

proxyURL is the value gh gets for HTTP_PROXY and HTTPS_PROXY.

()

Source from the content-addressed store, hash-verified

88
89// proxyURL is the value gh gets for HTTP_PROXY and HTTPS_PROXY.
90func (m *mockServer) proxyURL() string {
91 return "http://" + m.listener.Addr().String()
92}
93
94// close stops the server and returns the requests it saw, in order. It waits
95// for TLS handshakes still under way, so a rejected certificate is logged.

Callers 4

serveGitHTTPMethod · 0.95
TestMockServerFunction · 0.80
runBinaryFunction · 0.80
cmdGitFunction · 0.80

Calls 2

AddrMethod · 0.80
StringMethod · 0.65

Tested by 1

TestMockServerFunction · 0.64