MCPcopy Create free account
hub / github.com/breck7/scroll / constructor

Method constructor

external/.scrollLibs.js:23470–23476  ·  view source on GitHub ↗
(superAgentResponse)

Source from the content-addressed store, hash-verified

23468})(CacheType || (CacheType = {}))
23469class WillowHTTPResponse {
23470 constructor(superAgentResponse) {
23471 this._cacheType = CacheType.inBrowserMemory
23472 this._fromCache = false
23473 this._cacheTime = Date.now()
23474 this._superAgentResponse = superAgentResponse
23475 this._mimeType = superAgentResponse && superAgentResponse.type
23476 }
23477 // todo: ServerMemoryCacheTime and ServerMemoryDiskCacheTime
23478 get cacheTime() {
23479 return this._cacheTime

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected