HttpCacheObject constructor
HttpCacheObject(})
Implementation
HttpCacheObject(
this.url,
this.cacheDirectory, {
this.headers,
this.expiredTime,
this.eTag,
this.contentLength,
this.lastUsed,
this.lastModified,
this.origin,
this.contentChecksum,
String? hash,
}) : hash = hash ?? _generateHash(url),
_file = File(path.join(cacheDirectory, hash ?? _generateHash(url))),
_lockFile = File(path.join(cacheDirectory, '${hash ?? _generateHash(url)}.lock')),
_blob = HttpCacheObjectBlob(path.join(cacheDirectory, '${hash ?? _generateHash(url)}-blob'));