Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewResponseUpgrader (0.29 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/upgrade.go

    }
    
    func (w *connWrapper) Close() error {
    	err := w.Conn.Close()
    	atomic.StoreInt32(&w.closed, 1)
    	return err
    }
    
    // NewResponseUpgrader returns a new httpstream.ResponseUpgrader that is
    // capable of upgrading HTTP responses using SPDY/3.1 via the
    // spdystream package.
    func NewResponseUpgrader() httpstream.ResponseUpgrader {
    	return NewResponseUpgraderWithPings(0)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 28 08:02:09 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/upgrade_test.go

    			shouldError:      false,
    		},
    	}
    
    	for i, testCase := range testCases {
    		server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    			upgrader := NewResponseUpgrader()
    			conn := upgrader.UpgradeResponse(w, req, nil)
    			haveErr := conn == nil
    			if e, a := testCase.shouldError, haveErr; e != a {
    				t.Fatalf("%d: expected shouldErr=%t, got %t", i, testCase.shouldError, haveErr)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 20:10:42 UTC 2017
    - 2.2K bytes
    - Viewed (0)
Back to top