MCPcopy
hub / github.com/mislav/hub / GetFile

Method GetFile

github/http.go:460–464  ·  view source on GitHub ↗
(path string, mimeType string)

Source from the content-addressed store, hash-verified

458}
459
460func (c *simpleClient) GetFile(path string, mimeType string) (*simpleResponse, error) {
461 return c.performRequest("GET", path, nil, func(req *http.Request) {
462 req.Header.Set("Accept", mimeType)
463 })
464}
465
466func (c *simpleClient) Delete(path string) (*simpleResponse, error) {
467 return c.performRequest("DELETE", path, nil, nil)

Callers 6

FetchPullRequestsMethod · 0.80
PullRequestPatchMethod · 0.80
CommitPatchMethod · 0.80
GistPatchMethod · 0.80
DownloadReleaseAssetMethod · 0.80
FetchCIStatusMethod · 0.80

Calls 2

performRequestMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected