Detailed information about a request, as stored in a har file.

interface HarFormatRequest {
    bodySize?: number;
    comment?: string;
    cookies?: any[];
    headers?: HarFormatNameValuePair[];
    headersSize?: number;
    httpVersion?: string;
    method?: string;
    postData?: HarFormatPostData;
    queryString?: HarFormatNameValuePair[];
    url?: string;
}

Properties

bodySize?: number

Size of the request body in bytes or -1 if it is unknown.

comment?: string

Any comment as a string. This is not used by kassette.

cookies?: any[]

Information about cookies. This is not implemented in kassette.

List of request headers.

headersSize?: number

Total number of bytes from the start of the HTTP request message until (and including) the double CRLF before the body, or -1 if it is unknown. kassette always sets -1 for this field.

httpVersion?: string

Request HTTP version, such as "HTTP/1.1".

method?: string

Request method, such as "GET" or "POST".

Information about the request body.

kassette only includes this field if saveInputRequestBody is true (or, for the _kassetteForwardedRequest.postData field, if saveForwardedRequestBody is true).

queryString?: HarFormatNameValuePair[]

List of query parameters.

url?: string

Request URL.