- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestHTTP10KeepAlive204Response (0.38 sec)
-
src/net/http/serve_test.go
func send304(w ResponseWriter, r *Request) { w.WriteHeader(304) } // Issue 15647: 204 responses can't have bodies, so HTTP/1.0 keep-alive conns should stay open. func TestHTTP10KeepAlive204Response(t *testing.T) { testTCPConnectionStaysOpen(t, "GET / HTTP/1.0\r\nConnection: keep-alive\r\n\r\n", HandlerFunc(send204)) } func TestHTTP11KeepAlive204Response(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 202K bytes - Viewed (0)