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

FuncType roundTripFunc

api/client_test.go:415–415  ·  view source on GitHub ↗

roundTripFunc lets a plain function satisfy http.RoundTripper.

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

Source from the content-addressed store, hash-verified

413
414// roundTripFunc lets a plain function satisfy http.RoundTripper.
415type roundTripFunc func(*http.Request) (*http.Response, error)
416
417func (f roundTripFunc) RoundTrip(req *http.Request) (*http.Response, error) { return f(req) }
418

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected