- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for proxyURL (0.34 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go
proxyURL, err := s.proxier(req) if err != nil { return nil, err } if proxyURL == nil { return s.dialWithoutProxy(req.Context(), req.URL) } switch proxyURL.Scheme { case "socks5": return s.dialWithSocks5Proxy(req, proxyURL) case "https", "http", "": return s.dialWithHttpProxy(req, proxyURL) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 12.7K bytes - Viewed (0) -
internal/config/subnet/config.go
// inputs not performing any network calls. return cfg, nil } // Make sure to clone the transport before editing the ProxyURL if proxyURL != nil { ctransport := transport.(*http.Transport).Clone() ctransport.Proxy = http.ProxyURL((*url.URL)(proxyURL)) cfg.transport = ctransport } else { cfg.transport = transport } return cfg, nil
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 3.8K bytes - Viewed (0) -
pkg/test/framework/components/cluster/kube/factory.go
} func buildClientWithProxy(kubeconfig string, proxyURL *url.URL) (istioKube.CLIClient, error) { rc, err := istioKube.DefaultRestConfig(kubeconfig, "", func(config *rest.Config) { config.QPS = 200 config.Burst = 400 }) if err != nil { return nil, err } rc.Proxy = http.ProxyURL(proxyURL) return istioKube.NewCLIClient(istioKube.NewClientConfigForRestConfig(rc))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 2.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go
proxyUrlChan := make(chan string) go runProxy(t, backendUrl, proxyUrlChan, proxyDone, errCh) var proxyUrl string select { case err := <-errCh: t.Fatalf("error listening: %v", err) case proxyUrl = <-proxyUrlChan: } conn, err := net.Dial("tcp4", proxyUrl) if err != nil { t.Fatalf("client: error connecting to proxy: %v", err) } spdyConn, err := NewClientConnection(conn)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 11:58:57 UTC 2023 - 7.9K bytes - Viewed (0) -
src/vendor/golang.org/x/net/http/httpproxy/proxy.go
if proxy == "" { return nil, nil } proxyURL, err := url.Parse(proxy) if err != nil || proxyURL.Scheme == "" || proxyURL.Host == "" { // proxy was bogus. Try prepending "http://" to it and // see if that parses correctly. If not, we fall // through and complain about the original one. if proxyURL, err := url.Parse("http://" + proxy); err == nil { return proxyURL, nil } } if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 00:09:40 UTC 2024 - 10K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/config.go
c.hboneTLSConfig, err = newHBONETLSConfig(c) if err != nil { return err } // Parse the proxy if specified. if len(c.Proxy) > 0 { proxyURL, err := url.Parse(c.Proxy) if err != nil { return err } c.proxyURL = http.ProxyURL(proxyURL) } // Configure reuseConnection and forceDNSLookup as appropriate. switch c.scheme { case scheme.DNS: c.newConnectionPerRequest = true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 08 09:39:20 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/util.go
ProxyAddress: cfg.Request.Hbone.GetAddress(), Headers: cfg.hboneHeaders, TLS: cfg.hboneTLSConfig, }) return out } proxyURL, _ := url.Parse(cfg.Proxy) if len(cfg.Proxy) > 0 && proxyURL.Scheme == "socks5" { dialer, _ := proxy.SOCKS5("tcp", proxyURL.Host, nil, proxy.Direct) return dialer.(hbone.Dialer) } out := &net.Dialer{ Timeout: common.ConnectionTimeout, } if cfg.forceDNSLookup {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 08 09:39:20 UTC 2023 - 4.4K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/sumdb.go
return errUseProxy case "direct", "off": return errProxyOff default: proxyURL, err := url.Parse(proxy) if err != nil { return err } if _, err := web.GetBytes(web.Join(proxyURL, "sumdb/"+c.name+"/supported")); err != nil { return err } // Success! This proxy will help us. c.base = web.Join(proxyURL, "sumdb/"+c.name) return nil } }) if errors.Is(err, fs.ErrNotExist) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 20 15:02:47 UTC 2023 - 9.1K bytes - Viewed (0) -
src/net/http/proxy_test.go
for _, tt := range cacheKeysTests { var proxy *url.URL if tt.proxy != "" { u, err := url.Parse(tt.proxy) if err != nil { t.Fatal(err) } proxy = u } cm := connectMethod{proxyURL: proxy, targetScheme: tt.scheme, targetAddr: tt.addr} 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) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 05:30:49 UTC 2020 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go
proxyServer := httptest.NewServer(proxyHandler) defer proxyServer.Close() proxyURL, _ := url.Parse(proxyServer.URL) proxyURL.Path = test.requestPath paramValues := url.Values{} for k, v := range test.requestParams { paramValues[k] = []string{v} } proxyURL.RawQuery = paramValues.Encode() var requestBody io.Reader if test.requestBody != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 39.4K bytes - Viewed (0)