HarRequest Class

Represents detailed info about an HTTP request.

public sealed class HarRequest

Constructors

NameDescription
HarRequest()

HarRequest()

HarRequest.cs
public HarRequest()

No documentation is available.

Properties

NameDescription
BodySizeGets or sets the size of the request body in bytes. Use -1 if the info is not available.
CommentGets or sets a comment provided by the user or the application.
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 request message until (and including) the double CRLF before the body. Use -1 if the info is not available.
HttpVersionGets or sets the request HTTP version.
MethodGets or sets the request method (GET, POST, ...).
PostDataGets or sets the posted data info.
QueryStringGets or sets the list of query string parameter objects.
UrlGets or sets the absolute URL of the request (fragments are not included).

Gets or sets the size of the request 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 list of cookie objects.

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

Property value

List<HarCookie>?

ExtensionData

HarRequest.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

HarRequest.cs

Gets or sets the total number of bytes from the start of the HTTP request 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

HarRequest.cs

Gets or sets the request HTTP version.

public string? HttpVersion { get; set; }

Property value

string?

Gets or sets the request method (GET, POST, ...).

public string? Method { get; set; }

Property value

string?

Gets or sets the posted data info.

public HarPostData? PostData { get; set; }

Property value

HarPostData?

QueryString

HarRequest.cs

Gets or sets the list of query string parameter objects.

public List<HarQueryParameter>? QueryString { get; set; }

Gets or sets the absolute URL of the request (fragments are not included).

public string? Url { get; set; }

Property value

string?