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

Function clientOptions

api/client.go:413–428  ·  view source on GitHub ↗
(hostname string, transport http.RoundTripper)

Source from the content-addressed store, hash-verified

411}
412
413func clientOptions(hostname string, transport http.RoundTripper) ghAPI.ClientOptions {
414 // AuthToken, and Headers are being handled by transport,
415 // so let go-gh know that it does not need to resolve them.
416 opts := ghAPI.ClientOptions{
417 AuthToken: "none",
418 Headers: map[string]string{
419 authorization: "",
420 apiVersion: apiVersionValue,
421 },
422 Host: hostname,
423 SkipDefaultHeaders: true,
424 Transport: transport,
425 LogIgnoreEnv: true,
426 }
427 return opts
428}

Callers 7

GraphQLMethod · 0.85
MutateMethod · 0.85
QueryMethod · 0.85
QueryWithContextMethod · 0.85
RESTMethod · 0.85
RESTWithNextMethod · 0.85
RequestWithContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected