kinetex - v1.0.0-rc.1
    Preparing search index...

    Interface HAREntry

    A single HAR log entry conforming to the HTTP Archive specification.

    interface HAREntry {
        startedDateTime: string;
        time: number;
        request: {
            method: string;
            url: string;
            httpVersion: string;
            headers: { name: string; value: string }[];
            queryString: { name: string; value: string }[];
            bodySize: number;
            postData?: { mimeType: string; text: string };
        };
        response: {
            status: number;
            statusText: string;
            httpVersion: string;
            headers: { name: string; value: string }[];
            content: { size: number; mimeType: string; text?: string };
            redirectURL: string;
            bodySize: number;
        };
        timings: { send: number; wait: number; receive: number };
        cache: { beforeRequest?: null; afterRequest?: null };
    }
    Index

    Properties

    startedDateTime: string

    ISO 8601 timestamp of the request start.

    time: number

    Total elapsed time in ms.

    request: {
        method: string;
        url: string;
        httpVersion: string;
        headers: { name: string; value: string }[];
        queryString: { name: string; value: string }[];
        bodySize: number;
        postData?: { mimeType: string; text: string };
    }

    Serialized request data.

    Type Declaration

    • method: string

      HTTP method.

    • url: string

      Request URL.

    • httpVersion: string

      HTTP version string (e.g. "HTTP/1.1", "HTTP/2").

    • headers: { name: string; value: string }[]

      Request headers as name/value pairs.

    • queryString: { name: string; value: string }[]

      Query parameters as name/value pairs.

    • bodySize: number

      Request body size in bytes (-1 if unknown).

    • OptionalpostData?: { mimeType: string; text: string }

      Posted data, if applicable.

      • mimeType: string

        MIME type of the posted data.

      • text: string

        Plain-text body of the posted data.

    response: {
        status: number;
        statusText: string;
        httpVersion: string;
        headers: { name: string; value: string }[];
        content: { size: number; mimeType: string; text?: string };
        redirectURL: string;
        bodySize: number;
    }

    Serialized response data.

    Type Declaration

    • status: number

      HTTP status code.

    • statusText: string

      HTTP status text.

    • httpVersion: string

      HTTP version string.

    • headers: { name: string; value: string }[]

      Response headers as name/value pairs.

    • content: { size: number; mimeType: string; text?: string }

      Response content metadata.

      • size: number

        Response body size in bytes.

      • mimeType: string

        MIME type of the response.

      • Optionaltext?: string

        Response body text (only included for text responses).

    • redirectURL: string

      Redirect target URL, if applicable.

    • bodySize: number

      Response body size in bytes (-1 if unknown).

    timings: { send: number; wait: number; receive: number }

    Timing breakdown in ms.

    Type Declaration

    • send: number

      Time spent sending the request in ms.

    • wait: number

      Time spent waiting for the response in ms.

    • receive: number

      Time spent receiving the response in ms.

    cache: { beforeRequest?: null; afterRequest?: null }

    Cache state before and after the request.

    Type Declaration

    • OptionalbeforeRequest?: null

      State of the cache before the request (always null in HAR 1.2).

    • OptionalafterRequest?: null

      State of the cache after the request (always null in HAR 1.2).