HarCacheEntry Class

Represents the state of a cache entry before or after a request.

public sealed class HarCacheEntry

Constructors

NameDescription
HarCacheEntry()

HarCacheEntry()

HarCacheEntry.cs
public HarCacheEntry()

No documentation is available.

Properties

NameDescription
CommentGets or sets a comment provided by the user or the application.
ETagGets or sets the ETag.
ExpiresGets or sets the expiration time of the cache entry.
ExtensionDataGets or sets additional vendor-specific fields.
HitCountGets or sets the number of times the cache entry has been opened.
LastAccessGets or sets the last time the cache entry was opened.

Gets or sets a comment provided by the user or the application.

public string? Comment { get; set; }

Property value

string?

Gets or sets the ETag.

public string? ETag { get; set; }

Property value

string?

Gets or sets the expiration time of the cache entry.

public DateTimeOffset? Expires { get; set; }

Property value

DateTimeOffset?

ExtensionData

HarCacheEntry.cs

Gets or sets additional vendor-specific fields.

public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Gets or sets the number of times the cache entry has been opened.

public int HitCount { get; set; }

Property value

int

Gets or sets the last time the cache entry was opened.

public DateTimeOffset LastAccess { get; set; }

Property value

DateTimeOffset