- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for newTransportDialTester (0.3 sec)
-
src/net/http/transport_dial_test.go
package http_test import ( "context" "io" "net" "net/http" "net/http/httptrace" "testing" ) func TestTransportPoolConnReusePriorConnection(t *testing.T) { dt := newTransportDialTester(t, http1Mode) // First request creates a new connection. rt1 := dt.roundTrip() c1 := dt.wantDial() c1.finish(nil) rt1.wantDone(c1) rt1.finish() // Second request reuses the first connection.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:11:57 UTC 2024 - 6.3K bytes - Viewed (0)