()
| 9 | ) |
| 10 | |
| 11 | func ExampleInstallProtocol() { |
| 12 | // Create custom net/http client that. |
| 13 | httpClient := &http.Client{ |
| 14 | Transport: &http.Transport{ |
| 15 | TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, |
| 16 | }, |
| 17 | } |
| 18 | |
| 19 | // Install it as default client for https URLs. |
| 20 | client.InstallProtocol("https", githttp.NewClient(httpClient)) |
| 21 | } |
nothing calls this directly
no test coverage detected