- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestTransportClosesRequestBody (0.44 sec)
-
src/net/http/transport_test.go
// body into a ReadCloser if it's a Closer, and that the Transport // then closes it. func TestTransportClosesRequestBody(t *testing.T) { run(t, testTransportClosesRequestBody, []testMode{http1Mode}) } func testTransportClosesRequestBody(t *testing.T, mode testMode) { ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { io.Copy(io.Discard, r.Body)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0)