Lines Matching refs:Client
479 c := &Client{Transport: tr}
491 // Slow client that should timeout.
556 c := &Client{Transport: tr}
613 c := &Client{Transport: tr}
674 c := &Client{Transport: new(Transport)}
954 c := &Client{Transport: tr, Timeout: time.Second}
1025 c := &Client{Transport: new(Transport)}
1153 client := &Client{Transport: noVerifyTransport}
1154 res, err := client.Get(ts.URL)
1324 // 100-continue but requesting client to deny us,
1372 // Only send the body immediately if we're acting like an HTTP client
1442 // should consume client request bodies that a handler didn't read.
1482 // should ignore client request bodies that a handler didn't read
1970 c := &Client{Transport: new(Transport)}
2014 c := &Client{Transport: new(Transport)}
2102 c := &Client{Transport: new(Transport)}
2130 c := &Client{Transport: new(Transport)}
2208 // as the client would then see http.ErrBodyReadAfterClose and not 0, io.EOF.
2241 t.Fatalf("client post #%d: %v", i, err)
2248 t.Fatalf("req #%d: client ReadAll: %v", i, err)
2251 t.Errorf("req #%d: client got %d bytes; expected 0", i, len(all))
2369 c := &Client{Transport: tr}
2414 c := &Client{Transport: new(Transport)}
2516 t.Errorf("handler restricted the request body to %d bytes, but client managed to write %d",
2521 // TestClientWriteShutdown tests that if the client shuts down the write
2579 // closing the TCP connection, causing the client to get a RST.
3248 // badly behaved client.
3401 // and the http client), and both think they can close it on failure.
3649 c := &Client{Transport: tr}
3897 // To test, verify we don't timeout or see fewer unique client
3938 t.Errorf("saw %d unique client addresses; want %d", len(addrSeen), numReq)
3941 t.Errorf("got %d successful client requests; want 0", numOkay)
4324 // is always blocked in a Read call so it notices the EOF from the client.
4490 client := &Client{Transport: noVerifyTransport}
4492 res, err := client.Get(ts.URL)
4511 // A benchmark for profiling the server without the HTTP client code.
4512 // The client code runs in a subprocess.
4576 // A benchmark for profiling the client without the HTTP server code.
4930 c := &Client{Transport: tr}
4968 func get(t *testing.T, c *Client, url string) string {
4993 c := &Client{Transport: tr}
5114 c := &Client{Transport: tr}
5193 // Tell the client to send more data after the GET request.