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

Method Do

lfsapi/client.go:18–20  ·  view source on GitHub ↗

Do sends an HTTP request to get an HTTP response. It wraps net/http, adding extra headers, redirection handling, and error reporting.

(req *http.Request)

Source from the content-addressed store, hash-verified

16// Do sends an HTTP request to get an HTTP response. It wraps net/http, adding
17// extra headers, redirection handling, and error reporting.
18func (c *Client) Do(req *http.Request) (*http.Response, error) {
19 return c.client.Do(req)
20}
21
22// do performs an *http.Request respecting redirects, and handles the response
23// as defined in c.handleResponse. Notably, it does not alter the headers for

Callers 15

TestAuthErrWithBodyFunction · 0.95
TestFatalWithBodyFunction · 0.95
TestAuthErrWithoutBodyFunction · 0.95
TestFatalWithoutBodyFunction · 0.95
mainFunction · 0.45
RobustRenameFunction · 0.45
RobustOpenFunction · 0.45
filterCommandFunction · 0.45
VersionFunction · 0.45
doMethod · 0.45

Calls

no outgoing calls

Tested by 6

TestAuthErrWithBodyFunction · 0.76
TestFatalWithBodyFunction · 0.76
TestAuthErrWithoutBodyFunction · 0.76
TestFatalWithoutBodyFunction · 0.76