Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RoundTripperFunc (0.23 sec)

  1. src/net/http/httputil/reverseproxy_test.go

    	}
    	bodyBytes, _ := io.ReadAll(res.Body)
    	if g, e := string(bodyBytes), backendResponse; g != e {
    		t.Errorf("got body %q; expected %q", g, e)
    	}
    }
    
    type RoundTripperFunc func(*http.Request) (*http.Response, error)
    
    func (fn RoundTripperFunc) RoundTrip(req *http.Request) (*http.Response, error) {
    	return fn(req)
    }
    
    // Issue 16036: send a Request with a nil Body when possible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go

    			}
    
    			// Error
    			if responder.called {
    				t.Errorf("Unexpected proxy handler error: %v", responder.err)
    			}
    		}()
    	}
    }
    
    type RoundTripperFunc func(req *http.Request) (*http.Response, error)
    
    func (fn RoundTripperFunc) RoundTrip(req *http.Request) (*http.Response, error) {
    	return fn(req)
    }
    
    func TestProxyUpgrade(t *testing.T) {
    
    	localhostPool := x509.NewCertPool()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 39.4K bytes
    - Viewed (0)
Back to top