func StreamObject(statusCode int, gv schema.GroupVersion, s runtime.NegotiatedSerializer, stream rest.ResourceStreamer, w http.ResponseWriter, req *http.Request) { … }
func SerializeObject(mediaType string, encoder runtime.Encoder, hw http.ResponseWriter, req *http.Request, statusCode int, object runtime.Object) { … }
var gzipPool …
const defaultGzipContentEncodingLevel …
const defaultGzipThresholdBytes …
func negotiateContentEncoding(req *http.Request) string { … }
type deferredResponseWriter …
func (w *deferredResponseWriter) Write(p []byte) (n int, err error) { … }
func (w *deferredResponseWriter) Close() error { … }
func WriteObjectNegotiated(s runtime.NegotiatedSerializer, restrictions negotiation.EndpointRestrictions, gv schema.GroupVersion, w http.ResponseWriter, req *http.Request, statusCode int, object runtime.Object, listGVKInContentType bool) { … }
func generateMediaTypeWithGVK(mediaType string, gvk *schema.GroupVersionKind) string { … }
func ErrorNegotiated(err error, s runtime.NegotiatedSerializer, gv schema.GroupVersion, w http.ResponseWriter, req *http.Request) int { … }
func WriteRawJSON(statusCode int, object interface{ … }