MCPcopy Create free account
hub / github.com/nodejs/undici / markInvalidCacheControlDirective

Function markInvalidCacheControlDirective

lib/util/cache.js:105–116  ·  view source on GitHub ↗
(directives, key)

Source from the content-addressed store, hash-verified

103}
104
105function markInvalidCacheControlDirective (directives, key) {
106 let invalidDirectives = directives[kInvalidCacheControlDirectives]
107
108 if (invalidDirectives === undefined) {
109 invalidDirectives = new Set()
110 Object.defineProperty(directives, kInvalidCacheControlDirectives, {
111 value: invalidDirectives
112 })
113 }
114
115 invalidDirectives.add(key)
116}
117
118function hasInvalidCacheControlDirective (directives, key) {
119 return directives[kInvalidCacheControlDirectives]?.has(key) === true

Callers 1

parseCacheControlHeaderFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected