Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHTTP10KeepAlive204Response (0.38 sec)

  1. 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)
Back to top