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

Function clientOptions

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

Source from the content-addressed store, hash-verified

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

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