Home | History | Annotate | Download | only in http

Lines Matching refs:Client

509 		res, err := ts.Client().Do(req)
655 c := ts.Client()
667 // Slow client that should timeout.
730 c := ts.Client()
802 c := ts.Client()
832 expected := "stream ID 3; INTERNAL_ERROR" // client IDs are odd, second stream should be 3
862 c := ts.Client()
916 c := ts.Client()
984 c := ts.Client()
1260 c := ts.Client()
1334 c := ts.Client()
1455 client := ts.Client()
1456 res, err := client.Get(ts.URL)
1679 // 100-continue but requesting client to deny us,
1727 // Only send the body immediately if we're acting like an HTTP client
1797 // should consume client request bodies that a handler didn't read.
1837 // should ignore client request bodies that a handler didn't read
2325 c := ts.Client()
2369 c := ts.Client()
2456 c := ts.Client()
2483 c := ts.Client()
2599 // as the client would then see http.ErrBodyReadAfterClose and not 0, io.EOF.
2632 t.Fatalf("client post #%d: %v", i, err)
2639 t.Fatalf("req #%d: client ReadAll: %v", i, err)
2642 t.Errorf("req #%d: client got %d bytes; expected 0", i, len(all))
2762 c := ts.Client()
2807 c := ts.Client()
2857 // In HTTP/2, the result depends on a race. If the client has received the
2859 // will fail with an error. Otherwise, the client should receive a 431 from the
2931 t.Errorf("handler restricted the request body to %d bytes, but client managed to write %d",
2936 // TestClientWriteShutdown tests that if the client shuts down the write
2994 // closing the TCP connection, causing the client to get a RST.
3660 // badly behaved client.
3813 // and the http client), and both think they can close it on failure.
4059 c := ts.Client()
4307 // To test, verify we don't timeout or see fewer unique client
4348 t.Errorf("saw %d unique client addresses; want %d", len(addrSeen), numReq)
4351 t.Errorf("got %d successful client requests; want 0", numOkay)
4737 // is always blocked in a Read call so it notices the EOF from the client.
4921 c := ts.Client()
4942 // A benchmark for profiling the server without the HTTP client code.
4943 // The client code runs in a subprocess.
5007 // A benchmark for profiling the client without the HTTP server code.
5358 c := ts.Client()
5396 func get(t *testing.T, c *Client, url string) string {
5419 c := ts.Client()
5558 c := ts.Client()
5653 // Tell the client to send more data after the GET request.