Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for calculateEtag (0.14 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. 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