Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for wantbool (0.19 sec)

  1. src/net/http/serve_test.go

    			t.Errorf("%q. unexpected error: %v", badTE, err)
    			continue
    		}
    
    		wantBody := fmt.Sprintf("" +
    			"HTTP/1.1 501 Not Implemented\r\nContent-Type: text/plain; charset=utf-8\r\n" +
    			"Connection: close\r\n\r\nUnsupported transfer encoding")
    
    		if string(gotBody) != wantBody {
    			t.Errorf("%q. body\ngot\n%q\nwant\n%q", badTE, gotBody, wantBody)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/net/http/transport_test.go

    	req.ContentLength = bodySize
    	res, err := c.Do(req)
    	if err := wantBody(res, err, "foo"); err != nil {
    		t.Errorf("POST response: %v", err)
    	}
    
    	res, err = c.Get(ts.URL)
    	if err := wantBody(res, err, "bar"); err != nil {
    		t.Errorf("GET response: %v", err)
    		return
    	}
    	getOkay = true  // suppress test noise
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top