HarCookie Class

Represents a cookie used in a request or response.

public sealed class HarCookie

Constructors

NameDescription
HarCookie()

HarCookie()

HarCookie.cs
public HarCookie()

No documentation is available.

Properties

NameDescription
CommentGets or sets a comment provided by the user or the application.
DomainGets or sets the host of the cookie.
ExpiresGets or sets the cookie expiration time.
ExtensionDataGets or sets additional vendor-specific fields.
HttpOnlyGets or sets whether the cookie is HTTP only.
NameGets or sets the name of the cookie.
PathGets or sets the path pertaining to the cookie.
SecureGets or sets whether the cookie was transmitted over SSL.
ValueGets or sets the cookie value.

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

public string? Comment { get; set; }

Property value

string?

Gets or sets the host of the cookie.

public string? Domain { get; set; }

Property value

string?

Gets or sets the cookie expiration time.

public DateTimeOffset? Expires { get; set; }

Property value

DateTimeOffset?

ExtensionData

HarCookie.cs

Gets or sets additional vendor-specific fields.

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

HttpOnly

HarCookie.cs

Gets or sets whether the cookie is HTTP only.

public bool? HttpOnly { get; set; }

Property value

bool?

Gets or sets the name of the cookie.

public string? Name { get; set; }

Property value

string?

Gets or sets the path pertaining to the cookie.

public string? Path { get; set; }

Property value

string?

Gets or sets whether the cookie was transmitted over SSL.

public bool? Secure { get; set; }

Property value

bool?

Gets or sets the cookie value.

public string? Value { get; set; }

Property value

string?