Information about the response body, as stored in a har file.

interface HarFormatContent {
    comment?: string;
    compression?: number;
    encoding?: string;
    json?: any;
    mimeType?: string;
    size?: number;
    text?: string;
}

Properties

comment?: string

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

compression?: number

Number of bytes saved by compression. This is not implemented by kassette.

encoding?: string

Encoding used for the text field, such as "base64".

json?: any

Response body saved as an object.

mimeType?: string

Value of the Content-Type response header.

size?: number

Size of the content in bytes.

text?: string

Response body.

The response body can be encoded in base64 if this is specified in the encoding field.