- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testRequestRedirect (0.14 sec)
-
src/net/http/request_test.go
t.Fatal(err) } res.Body.Close() if g, w := res.StatusCode, StatusOK; g != w { t.Fatalf("Status code mismatch: got %d, want %d", g, w) } } func TestRequestRedirect(t *testing.T) { run(t, testRequestRedirect) } func testRequestRedirect(t *testing.T, mode testMode) { cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { switch r.URL.Path { case "/":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0)