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

Function newRequestConfig

api/client.go:98–104  ·  view source on GitHub ↗
(opts []RequestOption)

Source from the content-addressed store, hash-verified

96}
97
98func newRequestConfig(opts []RequestOption) requestConfig {
99 cfg := requestConfig{headers: map[string]string{}}
100 for _, opt := range opts {
101 opt(&cfg)
102 }
103 return cfg
104}
105
106// GraphQL performs a GraphQL request using the query string and parses the response into data receiver. If there are errors in the response,
107// GraphQLError will be returned, but the receiver will also be partially populated.

Callers 3

GraphQLMethod · 0.85
RequestWithContextMethod · 0.85
DoRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected