Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ResetCachedEnvironment (0.34 sec)

  1. src/net/http/proxy_test.go

    		}
    	}
    }
    
    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)
  2. 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)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:11:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top