Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for https_proxy (0.17 sec)

  1. src/vendor/golang.org/x/net/http/httpproxy/proxy.go

    // lowercase versions thereof).
    //
    // The environment values may be either a complete URL or a
    // "host[:port]", in which case the "http" scheme is assumed. An error
    // is returned if the value is a different form.
    func FromEnvironment() *Config {
    	return &Config{
    		HTTPProxy:  getEnvAny("HTTP_PROXY", "http_proxy"),
    		HTTPSProxy: getEnvAny("HTTPS_PROXY", "https_proxy"),
    		NoProxy:    getEnvAny("NO_PROXY", "no_proxy"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/testing/http.go

    		panic("t is not a known test interface")
    	}
    	h := &HTTPProxyHandler{
    		hook: hook,
    		httpProxy: httputil.ReverseProxy{
    			Director: func(req *http.Request) {
    				req.URL.Scheme = "http"
    				req.URL.Host = req.Host
    			},
    		},
    		t: t,
    	}
    	return h
    }
    
    // HTTPProxyHandler implements a simple handler for http_proxy and https_proxy
    // requests for use in testing.
    type HTTPProxyHandler struct {
    	handlerDone sync.WaitGroup
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 20 14:58:46 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go

    	if !localhostPool.AppendCertsFromPEM(localhostCert) {
    		t.Errorf("error setting up localhostCert pool")
    	}
    	return localhostPool
    }
    
    // be sure to unset environment variable https_proxy (if exported) before testing, otherwise the testing will fail unexpectedly.
    func TestRoundTripAndNewConnection(t *testing.T) {
    	localhostPool := localhostCertPool(t)
    
    	testCases := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 32.7K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/preflight/checks_test.go

    		}
    	}
    
    	t.Setenv("HTTP_PROXY", "http://proxy.example.com:3128")
    	t.Setenv("HTTPS_PROXY", "https://proxy.example.com:3128")
    	t.Setenv("NO_PROXY", "example.com,10.0.0.0/8,2001:db8::/48")
    	// Check if we can reliably execute tests:
    	// ProxyFromEnvironment caches the *_proxy environment variables and
    	// if ProxyFromEnvironment already executed before our test with empty
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    	// Issue 16405: don't use HTTP_PROXY in a CGI environment,
    	// where HTTP_PROXY can be attacker-controlled.
    	{env: "http://10.1.2.3:8080", reqmeth: "POST",
    		want:    "<nil>",
    		wanterr: errors.New("refusing to use HTTP_PROXY value in CGI environment; see golang.org/s/cgihttpproxy")},
    
    	{want: "<nil>"},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. src/net/http/transport.go

    	_ "unsafe"
    
    	"golang.org/x/net/http/httpguts"
    	"golang.org/x/net/http/httpproxy"
    )
    
    // DefaultTransport is the default implementation of [Transport] and is
    // used by [DefaultClient]. It establishes network connections as needed
    // and caches them for reuse by subsequent calls. It uses HTTP proxies
    // as directed by the environment variables HTTP_PROXY, HTTPS_PROXY
    // and NO_PROXY (or the lowercase versions thereof).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  7. tests/testdata/envoy_local.json

                ]
              }
            ],
            "listener_filters": [
              {
                "name": "envoy.listener.original_dst"
              }
            ]
          },
          {
            "name": "http_proxy",
            "address": {
              "socket_address": {
                "address": "0.0.0.0",
                "port_value": 17002
              }
            },
            "filter_chains": [
              {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 13 02:10:15 UTC 2021
    - 9.9K bytes
    - Viewed (0)
  8. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientConfigurer.java

            HttpProxySettings.HttpProxy httpProxy = httpSettings.getProxySettings().getProxy();
            HttpProxySettings.HttpProxy httpsProxy = httpSettings.getSecureProxySettings().getProxy();
    
            for (HttpProxySettings.HttpProxy proxy : Lists.newArrayList(httpProxy, httpsProxy)) {
                if (proxy != null) {
                    if (proxy.credentials != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  9. pkg/config/protocol/instance_test.go

    		name string
    		out  protocol.Instance
    	}{
    		{"tcp", protocol.TCP},
    		{"http", protocol.HTTP},
    		{"HTTP", protocol.HTTP},
    		{"Http", protocol.HTTP},
    		{"http_proxy", protocol.HTTP_PROXY},
    		{"Http_Proxy", protocol.HTTP_PROXY},
    		{"HTTP_PROXY", protocol.HTTP_PROXY},
    		{"https", protocol.HTTPS},
    		{"http2", protocol.HTTP2},
    		{"grpc", protocol.GRPC},
    		{"grpc-web", protocol.GRPCWeb},
    		{"gRPC-Web", protocol.GRPCWeb},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 11 16:27:16 UTC 2022
    - 2K bytes
    - Viewed (0)
  10. src/net/http/proxy_test.go

    		if got := cm.key().String(); got != tt.key {
    			t.Fatalf("{%q, %q, %q} cache key = %q; want %q", tt.proxy, tt.scheme, tt.addr, got, tt.key)
    		}
    	}
    }
    
    func ResetProxyEnv() {
    	for _, v := range []string{"HTTP_PROXY", "http_proxy", "NO_PROXY", "no_proxy", "REQUEST_METHOD"} {
    		os.Unsetenv(v)
    	}
    	ResetCachedEnvironment()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 05:30:49 UTC 2020
    - 1.2K bytes
    - Viewed (0)
Back to top