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

Interface httpClient

pkg/cmd/attestation/api/client.go:62–64  ·  view source on GitHub ↗

httpClient makes HTTP calls to all non-GitHub API endpoints

Source from the content-addressed store, hash-verified

60
61// httpClient makes HTTP calls to all non-GitHub API endpoints
62type httpClient interface {
63 Get(url string) (*http.Response, error)
64}
65
66type Client interface {
67 GetByDigest(params FetchParams) ([]*Attestation, error)

Implementers 6

mockHttpClientpkg/cmd/attestation/api/mock_httpClien
invalidBundleClientpkg/cmd/attestation/api/mock_httpClien
reqFailHttpClientpkg/cmd/attestation/api/mock_httpClien
failAfterNCallsHttpClientpkg/cmd/attestation/api/mock_httpClien
readmeGetterpkg/cmd/extension/browse/rg.go
AliasConfiginternal/config/config.go

Calls

no outgoing calls

Tested by

no test coverage detected