Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SerializeObject (0.23 sec)

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

    		writer = flushwriter.Wrap(w)
    	}
    	io.Copy(writer, out)
    }
    
    // SerializeObject renders an object in the content type negotiated by the client using the provided encoder.
    // The context is optional and can be nil. This method will perform optional content compression if requested by
    // a client and the feature gate for APIResponseCompression is enabled.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    				ctt.statusCode = http.StatusOK
    			}
    			recorder := &fakeResponseRecorder{
    				ResponseRecorder:   httptest.NewRecorder(),
    				fe:                 encoder,
    				errorAfterEncoding: true,
    			}
    			SerializeObject(ctt.mediaType, encoder, recorder, ctt.req, ctt.statusCode, ctt.object)
    			result := recorder.Result()
    			if result.StatusCode != ctt.wantCode {
    				t.Fatalf("unexpected code: %v", result.StatusCode)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top