Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for calculateEtag (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/etag.go

    // Attaches Cache-Busting functionality to an endpoint
    //   - Sets ETag header to provided hash
    //   - Replies with 304 Not Modified, if If-None-Match header matches hash
    //
    // hash should be the value of calculateETag on object. If hash is empty, then
    // the object is simply serialized without E-Tag functionality
    func ServeHTTPWithETag(
    	object runtime.Object,
    	hash string,
    	targetGV schema.GroupVersion,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

                    headers = [
                        'x-amz-id-2': X_AMZ_ID_2,
                        'x-amz-request-id': X_AMZ_REQUEST_ID,
                        'Date': DATE_HEADER,
                        "ETag": { calculateEtag(file) },
                        'Server': SERVER_AMAZON_S3
                    ]
                }
            }
            expect(httpStub)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  3. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/fixtures/GcsServer.groovy

                    }
                }
                response {
                    status = 200
                    headers = [
                        'Date'            : DATE_HEADER,
                        "ETag"            : { calculateEtag(file) },
                        'Server'          : SERVER_GCS
                    ]
                    body = { '{}' }
                }
            }
            expect(httpStub)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler.go

    	cacheLoad := rdm.cache.Load()
    	if cacheLoad != nil {
    		return cacheLoad
    	}
    	response := apidiscoveryv2.APIGroupDiscoveryList{
    		Items: rdm.calculateAPIGroupsLocked(),
    	}
    	etag, err := calculateETag(response)
    	if err != nil {
    		klog.Errorf("failed to calculate etag for discovery document: %s", etag)
    		etag = ""
    	}
    	cached := &cachedGroupList{
    		cachedResponse:     response,
    		cachedResponseETag: etag,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top