Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testClientHead (0.42 sec)

  1. src/net/http/client_test.go

    	if err != nil {
    		t.Error(err)
    	} else if s := string(b); !strings.HasPrefix(s, "User-agent:") {
    		t.Errorf("Incorrect page body (did not begin with User-agent): %q", s)
    	}
    }
    
    func TestClientHead(t *testing.T) { run(t, testClientHead) }
    func testClientHead(t *testing.T, mode testMode) {
    	cst := newClientServerTest(t, mode, robotsTxtHandler)
    	r, err := cst.c.Head(cst.ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    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