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

Function clientOptions

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

Source from the content-addressed store, hash-verified

254}
255
256func clientOptions(hostname string, transport http.RoundTripper) ghAPI.ClientOptions {
257 // AuthToken, and Headers are being handled by transport,
258 // so let go-gh know that it does not need to resolve them.
259 opts := ghAPI.ClientOptions{
260 AuthToken: "none",
261 Headers: map[string]string{
262 authorization: "",
263 apiVersion: apiVersionValue,
264 },
265 Host: hostname,
266 SkipDefaultHeaders: true,
267 Transport: transport,
268 LogIgnoreEnv: true,
269 }
270 return opts
271}

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected