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

FuncType funcTripper

pkg/cmd/release/shared/upload_test.go:121–121  ·  view source on GitHub ↗

funcTripper drives uploadWithDelete from a plain function. It is a RoundTripper rather than a Do-er because the upload path takes a concrete *http.Client, which is what api.Client needs.

func(*http.Request) (*http.Response, error)

Source from the content-addressed store, hash-verified

119// funcTripper drives uploadWithDelete from a plain function. It is a RoundTripper rather than
120// a Do-er because the upload path takes a concrete *http.Client, which is what api.Client needs.
121type funcTripper func(*http.Request) (*http.Response, error)
122
123func (f funcTripper) RoundTrip(req *http.Request) (*http.Response, error) {
124 return f(req)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected