Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTLSServerWithHTTP2 (0.14 sec)

  1. src/net/http/httptest/server_test.go

    		// we closed it.
    		conn.Close()
    		ts.Config.ConnState(conn, http.StateClosed)
    	}(conn)
    
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		ts.Close()
    	}()
    	wg.Wait()
    }
    
    func TestTLSServerWithHTTP2(t *testing.T) {
    	modes := []struct {
    		name      string
    		wantProto string
    	}{
    		{"http1", "HTTP/1.1"},
    		{"http2", "HTTP/2.0"},
    	}
    
    	for _, tt := range modes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top