Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for negotiateContentEncoding (0.3 sec)

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

    	// if the client requests it.
    	defaultGzipThresholdBytes = 128 * 1024
    )
    
    // negotiateContentEncoding returns a supported client-requested content encoding for the
    // provided request. It will return the empty string if no supported content encoding was
    // found or if response compression is disabled.
    func negotiateContentEncoding(req *http.Request) string {
    	encoding := req.Header.Get("Accept-Encoding")
    	if len(encoding) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top