MCPcopy
hub / github.com/helm/helm / NewHTTPGetter

Function NewHTTPGetter

pkg/getter/httpgetter.go:108–116  ·  view source on GitHub ↗

NewHTTPGetter constructs a valid http/https client as a Getter

(options ...Option)

Source from the content-addressed store, hash-verified

106
107// NewHTTPGetter constructs a valid http/https client as a Getter
108func NewHTTPGetter(options ...Option) (Getter, error) {
109 var client HTTPGetter
110
111 for _, opt := range options {
112 opt(&client.opts)
113 }
114
115 return &client, nil
116}
117
118func (g *HTTPGetter) httpClient(opts getterOptions) (*http.Client, error) {
119 if opts.transport != nil {

Callers 8

TestResolveChartOptsFunction · 0.92
TestHTTPGetterFunction · 0.85
TestDownloadFunction · 0.85
TestDownloadTLSFunction · 0.85
GettersFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestResolveChartOptsFunction · 0.74
TestHTTPGetterFunction · 0.68
TestDownloadFunction · 0.68
TestDownloadTLSFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…