Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestClientRedirectsContext (0.25 sec)

  1. src/net/http/client_test.go

    		t.Errorf("no Location header in Response")
    	}
    }
    
    // Tests that Client redirects' contexts are derived from the original request's context.
    func TestClientRedirectsContext(t *testing.T) { run(t, testClientRedirectsContext) }
    func testClientRedirectsContext(t *testing.T, mode testMode) {
    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		Redirect(w, r, "/", StatusTemporaryRedirect)
    	})).ts
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top