HarContent Class

Represents the response body.

public sealed class HarContent

Constructors

NameDescription
HarContent()

HarContent()

HarContent.cs
public HarContent()

No documentation is available.

Properties

NameDescription
CommentGets or sets a comment provided by the user or the application.
CompressionGets or sets the number of bytes saved due to compression. Use -1 if the info is not available.
EncodingGets or sets the encoding used for response text field (e.g., "base64").
ExtensionDataGets or sets additional vendor-specific fields.
MimeTypeGets or sets the MIME type of the response text.
SizeGets or sets the length of the returned content in bytes.
TextGets or sets the response body sent from the server or loaded from the browser cache.

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

public string? Comment { get; set; }

Property value

string?

Compression

HarContent.cs

Gets or sets the number of bytes saved due to compression. Use -1 if the info is not available.

public long? Compression { get; set; }

Property value

long?

Gets or sets the encoding used for response text field (e.g., "base64").

public string? Encoding { get; set; }

Property value

string?

ExtensionData

HarContent.cs

Gets or sets additional vendor-specific fields.

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

Gets or sets the MIME type of the response text.

public string? MimeType { get; set; }

Property value

string?

Gets or sets the length of the returned content in bytes.

public long Size { get; set; }

Property value

long

Gets or sets the response body sent from the server or loaded from the browser cache.

public string? Text { get; set; }

Property value

string?