Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for resetProxyConfig (0.49 sec)

  1. src/net/http/export_test.go

    func NewTestTimeoutHandler(handler Handler, ctx context.Context) Handler {
    	return &timeoutHandler{
    		handler:     handler,
    		testContext: ctx,
    		// (no body)
    	}
    }
    
    func ResetCachedEnvironment() {
    	resetProxyConfig()
    }
    
    func (t *Transport) NumPendingRequestsForTesting() int {
    	t.reqMu.Lock()
    	defer t.reqMu.Unlock()
    	return len(t.reqCanceler)
    }
    
    func (t *Transport) IdleConnKeysForTesting() (keys []string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. src/net/http/transport.go

    func envProxyFunc() func(*url.URL) (*url.URL, error) {
    	envProxyOnce.Do(func() {
    		envProxyFuncValue = httpproxy.FromEnvironment().ProxyFunc()
    	})
    	return envProxyFuncValue
    }
    
    // resetProxyConfig is used by tests.
    func resetProxyConfig() {
    	envProxyOnce = sync.Once{}
    	envProxyFuncValue = nil
    }
    
    func (t *Transport) connectMethodForRequest(treq *transportRequest) (cm connectMethod, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top