MCPcopy Create free account
hub / github.com/cli/cli / NewClientFromHTTP

Function NewClientFromHTTP

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

Source from the content-addressed store, hash-verified

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

Callers 15

searchMethod · 0.92
deleteRunFunction · 0.92
listRunFunction · 0.92
TestGetCachesFunction · 0.92
NewDiscussionClientFunction · 0.92
SmartBaseRepoFuncFunction · 0.92
viewRulesetFunction · 0.92
listRulesetsFunction · 0.92
checkRunFunction · 0.92
deleteAssetFunction · 0.92
deleteReleaseFunction · 0.92
deleteTagFunction · 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
testUploaderFunction · 0.74
TestInstallSkillFunction · 0.74