Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestClientCanClose (0.28 sec)

  1. src/net/http/serve_test.go

    	testTCPConnectionCloses(t, "GET / HTTP/1.0\r\n\r\n", HandlerFunc(func(w ResponseWriter, r *Request) {
    		ServeFile(w, r, "testdata/file")
    	}))
    }
    
    // TestClientCanClose verifies that clients can also force a connection to close.
    func TestClientCanClose(t *testing.T) {
    	testTCPConnectionCloses(t, "GET / HTTP/1.1\r\nHost: foo\r\nConnection: close\r\n\r\n", HandlerFunc(func(w ResponseWriter, r *Request) {
    		// Nothing.
    	}))
    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