MCPcopy
hub / github.com/ossf/scorecard / WithRoundTripper

Function WithRoundTripper

clients/githubrepo/client.go:79–84  ·  view source on GitHub ↗

WithRoundTripper configures the repo client to use the specified http.RoundTripper.

(rt http.RoundTripper)

Source from the content-addressed store, hash-verified

77
78// WithRoundTripper configures the repo client to use the specified http.RoundTripper.
79func WithRoundTripper(rt http.RoundTripper) Option {
80 return func(c *repoClientConfig) error {
81 c.rt = rt
82 return nil
83 }
84}
85
86type repoClientConfig struct {
87 rt http.RoundTripper

Callers 2

GetOrgRepoClientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected