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

interface HarFormatResponse {
    bodySize?: number;
    comment?: string;
    content?: HarFormatContent;
    cookies?: any[];
    headers?: HarFormatNameValuePair[];
    headersSize?: number;
    httpVersion?: string;
    redirectURL?: string;
    status?: number;
    statusText?: string;
}

Properties

bodySize?: number

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

comment?: string

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

Information about the response body.

cookies?: any[]

Information about cookies. This is not implemented in kassette.

List of response headers.

headersSize?: number

Total number of bytes from the start of the HTTP response 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

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

redirectURL?: string

Content of the Location response header if present.

status?: number

Response status.

statusText?: string

Response status text.