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

Function newRequestConfig

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

Source from the content-addressed store, hash-verified

97}
98
99func newRequestConfig(opts []RequestOption) requestConfig {
100 cfg := requestConfig{headers: map[string]string{}}
101 for _, opt := range opts {
102 opt(&cfg)
103 }
104 return cfg
105}
106
107// GraphQL performs a GraphQL request using the query string and parses the response into data receiver. If there are errors in the response,
108// 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