MCPcopy Index your code
hub / github.com/perkeep/perkeep / setDefaultHTTPClient

Method setDefaultHTTPClient

pkg/client/client.go:209–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209func (c *Client) setDefaultHTTPClient() {
210 if c.httpClient == nil {
211 c.httpClient = &http.Client{
212 Transport: c.transportForConfig(c.transportConfig),
213 }
214 }
215 c.httpGate = syncutil.NewGate(httpGateSize(c.httpClient.Transport))
216}
217
218// NewOrFail is like New, but calls log.Fatal instead of returning an error.
219func NewOrFail(opts ...ClientOption) *Client {

Callers 1

NewFunction · 0.95

Calls 2

transportForConfigMethod · 0.95
httpGateSizeFunction · 0.85

Tested by

no test coverage detected