MCPcopy
hub / github.com/kubernetes/client-go / RoundTrip

Method RoundTrip

transport/transport_test.go:338–347  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

336}
337
338func (rt *chainRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
339 resp, err := rt.rt.RoundTrip(req)
340 if resp != nil {
341 if resp.Header == nil {
342 resp.Header = make(http.Header)
343 }
344 resp.Header.Set("Value", resp.Header.Get("Value")+rt.value)
345 }
346 return resp, err
347}
348
349func TestWrappers(t *testing.T) {
350 resp1 := &http.Response{}

Callers

nothing calls this directly

Calls 3

SetMethod · 0.65
GetMethod · 0.65
RoundTripMethod · 0.45

Tested by

no test coverage detected