Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testProxyForRequest (0.11 sec)

  1. src/net/http/transport_test.go

    	{noenv: "example.com", req: "http://foo.example.com/", env: "proxy", want: "<nil>"},
    	{noenv: ".foo.com", req: "http://example.com/", env: "proxy", want: "http://proxy"},
    }
    
    func testProxyForRequest(t *testing.T, tt proxyFromEnvTest, proxyForRequest func(req *Request) (*url.URL, error)) {
    	t.Helper()
    	reqURL := tt.req
    	if reqURL == "" {
    		reqURL = "http://example.com"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top