MCPcopy Index your code
hub / github.com/cli/cli / clientOptions

Function clientOptions

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

Source from the content-addressed store, hash-verified

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

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