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

Method Request

api/client.go:206–208  ·  view source on GitHub ↗

Request performs a REST request and returns the response for the caller to consume. See RequestWithContext for the full semantics.

(hostname string, method string, p string, body io.Reader, opts ...RequestOption)

Source from the content-addressed store, hash-verified

204//
205// See RequestWithContext for the full semantics.
206func (c Client) Request(hostname string, method string, p string, body io.Reader, opts ...RequestOption) (*http.Response, error) {
207 return c.RequestWithContext(context.Background(), hostname, method, p, body, opts...)
208}
209
210// RequestWithContext performs a REST request and returns the response for the caller to consume,
211// rather than decoding it into a receiver as REST does. It exists for call sites that need access

Callers 15

searchMethod · 0.80
publishedReleaseExistsFunction · 0.80
GetScopesFunction · 0.80
GetRawGistFileFunction · 0.80
createGistFunction · 0.80
getResponseFunction · 0.80
fetchContentFunction · 0.80
fetchRawFileFunction · 0.80
deleteRepoFunction · 0.80
GetLogMethod · 0.80
getLogFunction · 0.80
downloadArtifactFunction · 0.80

Calls 1

RequestWithContextMethod · 0.95