MCPcopy Index your code
hub / github.com/google/go-github / BareDo

Method BareDo

github/github.go:1263–1265  ·  view source on GitHub ↗

BareDo sends an API request and lets you handle the api response. If an error or API Error occurs, the error will contain more information. Otherwise, you are supposed to read and close the response's Body. If rate limit is exceeded and reset time is in the future, BareDo returns *RateLimitError imm

(req *http.Request)

Source from the content-addressed store, hash-verified

1261// and reset time is in the future, BareDo returns *RateLimitError immediately
1262// without making a network API call.
1263func (c *Client) BareDo(req *http.Request) (*Response, error) {
1264 return c.bareDo(c.client, req)
1265}
1266
1267// bareDoIgnoreRedirects has the exact same behavior as BareDo but stops at the first
1268// redirection code returned by the API. If a redirection is returned by the api, bareDoIgnoreRedirects

Callers 3

DoMethod · 0.95

Calls 1

bareDoMethod · 0.95

Tested by 1