MCPcopy
hub / github.com/cli/cli / NewClientFromHTTP

Function NewClientFromHTTP

api/client.go:29–32  ·  view source on GitHub ↗
(httpClient *http.Client)

Source from the content-addressed store, hash-verified

27var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`)
28
29func NewClientFromHTTP(httpClient *http.Client) *Client {
30 client := &Client{http: httpClient}
31 return client
32}
33
34type Client struct {
35 http *http.Client

Callers 15

deleteRunFunction · 0.92
listRunFunction · 0.92
TestGetCachesFunction · 0.92
NewDiscussionClientFunction · 0.92
SmartBaseRepoFuncFunction · 0.92
viewRulesetFunction · 0.92
listRulesetsFunction · 0.92
checkRunFunction · 0.92
fetchReleasesFunction · 0.92
fetchDraftReleaseFunction · 0.92
remoteTagExistsFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestGetCachesFunction · 0.74
TestIssueListFunction · 0.74
TestIssueList_paginationFunction · 0.74
TestGetAnnotations404Function · 0.74
TestMeReplacer_ReplaceFunction · 0.74
Test_generateCompareURLFunction · 0.74
Test_getCurrentUsernameFunction · 0.74
TestInstallSkillFunction · 0.74
TestInstallFunction · 0.74