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

Method constructor

lib/handler/cache-handler.js:162–168  ·  view source on GitHub ↗

* @param {import('../../types/cache-interceptor.d.ts').default.CacheHandlerOptions} opts * @param {import('../../types/cache-interceptor.d.ts').default.CacheKey} cacheKey * @param {import('../../types/dispatcher.d.ts').default.DispatchHandler} handler

({ store, type, cacheByDefault }, cacheKey, handler)

Source from the content-addressed store, hash-verified

160 * @param {import('../../types/dispatcher.d.ts').default.DispatchHandler} handler
161 */
162 constructor ({ store, type, cacheByDefault }, cacheKey, handler) {
163 this.#store = store
164 this.#cacheType = type
165 this.#cacheByDefault = cacheByDefault
166 this.#cacheKey = cacheKey
167 this.#handler = handler
168 }
169
170 onRequestStart (controller, context) {
171 this.#writeStream?.destroy()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected