MCPcopy
hub / github.com/git-lfs/git-lfs / do

Method do

lfsapi/client.go:25–27  ·  view source on GitHub ↗

do performs an *http.Request respecting redirects, and handles the response as defined in c.handleResponse. Notably, it does not alter the headers for the request argument in any way.

(req *http.Request, remote string, via []*http.Request)

Source from the content-addressed store, hash-verified

23// as defined in c.handleResponse. Notably, it does not alter the headers for
24// the request argument in any way.
25func (c *Client) do(req *http.Request, remote string, via []*http.Request) (*http.Response, error) {
26 return c.client.Do(req)
27}
28
29func (c *Client) doWithAccess(req *http.Request, remote string, via []*http.Request, mode creds.AccessMode) (*http.Response, error) {
30 return c.client.DoWithAccess(req, mode)

Callers

nothing calls this directly

Calls 1

DoMethod · 0.45

Tested by

no test coverage detected