Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newProxy (0.12 sec)

  1. src/net/http/httputil/reverseproxy_test.go

    	const content = "response_content"
    	backend := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		w.Write([]byte(r.URL.RawQuery))
    	}))
    	defer backend.Close()
    	backendURL, err := url.Parse(backend.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	proxyHandler := newProxy(backendURL)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

          return waitFor(closingFunction5, ClosingFunction5.class);
        }
    
        <T> T waitFor(final T delegate, final Class<T> type) {
          checkState(proxy == null);
          T proxyObject =
              Reflection.newProxy(
                  type,
                  new InvocationHandler() {
                    @Override
                    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

          return waitFor(closingFunction5, ClosingFunction5.class);
        }
    
        <T> T waitFor(final T delegate, final Class<T> type) {
          checkState(proxy == null);
          T proxyObject =
              Reflection.newProxy(
                  type,
                  new InvocationHandler() {
                    @Override
                    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
Back to top