proxyURL is the value gh gets for HTTP_PROXY and HTTPS_PROXY.
()
| 88 | |
| 89 | // proxyURL is the value gh gets for HTTP_PROXY and HTTPS_PROXY. |
| 90 | func (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. |