HarResponse Class

Represents detailed info about an HTTP response.

public sealed class HarResponse

Constructors

NameDescription
HarResponse()

HarResponse()

HarResponse.cs
public HarResponse()

No documentation is available.

Properties

NameDescription
BodySizeGets or sets the size of the received response body in bytes. Use -1 if the info is not available.
CommentGets or sets a comment provided by the user or the application.
ContentGets or sets the details about the response body.
CookiesGets or sets the list of cookie objects.
ExtensionDataGets or sets additional vendor-specific fields.
HeadersGets or sets the list of header objects.
HeadersSizeGets or sets the total number of bytes from the start of the HTTP response message until (and including) the double CRLF before the body. Use -1 if the info is not available.
HttpVersionGets or sets the response HTTP version.
RedirectUrlGets or sets the redirection target URL from the Location response header.
StatusGets or sets the response status code.
StatusTextGets or sets the response status description.

Gets or sets the size of the received response body in bytes. Use -1 if the info is not available.

public long BodySize { get; set; }

Property value

long

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

public string? Comment { get; set; }

Property value

string?

Gets or sets the details about the response body.

public HarContent? Content { get; set; }

Property value

HarContent?

Gets or sets the list of cookie objects.

public List<HarCookie>? Cookies { get; set; }

Property value

List<HarCookie>?

ExtensionData

HarResponse.cs

Gets or sets additional vendor-specific fields.

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

Gets or sets the list of header objects.

public List<HarHeader>? Headers { get; set; }

Property value

List<HarHeader>?

HeadersSize

HarResponse.cs

Gets or sets the total number of bytes from the start of the HTTP response message until (and including) the double CRLF before the body. Use -1 if the info is not available.

public long HeadersSize { get; set; }

Property value

long

HttpVersion

HarResponse.cs

Gets or sets the response HTTP version.

public string? HttpVersion { get; set; }

Property value

string?

RedirectUrl

HarResponse.cs

Gets or sets the redirection target URL from the Location response header.

public string? RedirectUrl { get; set; }

Property value

string?

Gets or sets the response status code.

public int Status { get; set; }

Property value

int

StatusText

HarResponse.cs

Gets or sets the response status description.

public string? StatusText { get; set; }

Property value

string?