Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestHandlersCanSetConnectionClose11 (0.32 sec)

  1. src/net/http/serve_test.go

    		// Nothing.
    	}))
    }
    
    // TestHandlersCanSetConnectionClose verifies that handlers can force a connection to close,
    // even for HTTP/1.1 requests.
    func TestHandlersCanSetConnectionClose11(t *testing.T) {
    	testTCPConnectionCloses(t, "GET / HTTP/1.1\r\nHost: foo\r\n\r\n\r\n", HandlerFunc(func(w ResponseWriter, r *Request) {
    		w.Header().Set("Connection", "close")
    	}))
    }
    
    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