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

Method doHTTP

tq/adapterbase.go:227–233  ·  view source on GitHub ↗
(t *Transfer, req *http.Request)

Source from the content-addressed store, hash-verified

225}
226
227func (a *adapterBase) doHTTP(t *Transfer, req *http.Request) (*http.Response, error) {
228 if t.Authenticated {
229 return a.apiClient.Do(req)
230 }
231 endpoint := endpointURL(req.URL.String(), t.Oid)
232 return a.apiClient.DoWithAuthNoRetry(a.remote, a.apiClient.Endpoints.AccessFor(endpoint), req)
233}
234
235func advanceCallbackProgress(cb ProgressCallback, t *Transfer, numBytes int64) {
236 if cb != nil {

Callers 3

makeRequestMethod · 0.80
makeRequestMethod · 0.80
DoTransferMethod · 0.80

Calls 5

endpointURLFunction · 0.85
DoWithAuthNoRetryMethod · 0.80
StringMethod · 0.65
AccessForMethod · 0.65
DoMethod · 0.45

Tested by

no test coverage detected