Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestLazyAccept (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers_test.go

    	clientIPWithReq := &lazyClientIP{req}
    	assert.Equal(t, ip, fmt.Sprintf("%v", clientIPWithReq))
    
    	clientIPWithoutReq := &lazyClientIP{}
    	assert.Equal(t, "unknown", fmt.Sprintf("%v", clientIPWithoutReq))
    }
    
    func TestLazyAccept(t *testing.T) {
    	req := &http.Request{}
    	req.Header = http.Header{}
    
    	accept := "application/json"
    	req.Header.Set("Accept", accept)
    
    	acceptWithReq := &lazyAccept{req}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 03 15:25:35 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top