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

Function clientOptions

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

Source from the content-addressed store, hash-verified

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

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