| 244 | } |
| 245 | |
| 246 | func oauthAppHttpClientFunc(appVersion string, invokingAgent string, telemetryDisabler ghtelemetry.Disabler) func() (*http.Client, error) { |
| 247 | return func() (*http.Client, error) { |
| 248 | return api.NewHTTPClient(api.HTTPClientOptions{ |
| 249 | AppVersion: appVersion, |
| 250 | InvokingAgent: invokingAgent, |
| 251 | SkipDefaultHeaders: true, |
| 252 | TelemetryDisabler: telemetryDisabler, |
| 253 | // Leave Log nil and ignore verbose tracing: request bodies contain live credentials. |
| 254 | LogHeadlineOnly: true, |
| 255 | }) |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | func plainHttpClientFunc(ios *iostreams.IOStreams, appVersion string, invokingAgent string, telemetryDisabler ghtelemetry.Disabler) func() (*http.Client, error) { |
| 260 | return func() (*http.Client, error) { |