mockttp
    Preparing search index...

    Interface BodyData

    interface BodyData {
        content: Uint8Array;
        eventTimestamp: number;
        id: string;
        isEnded: boolean;
    }
    Index
    content: Uint8Array

    The contents of the chunk as a raw buffer. Note that this may be empty, when the body is finishing, if it wasn't known to be finished at the preceeding chunk of data.

    eventTimestamp: number

    A high-precision floating-point monotonically increasing timestamp. Comparable and precise, but not related to specific current time.

    To link this to the current time, compare it to timingEvents.startTime.

    id: string

    The id of the request or response this data belongs to.

    isEnded: boolean

    Indicates whether the body has completed or whether there's more coming. This will not be set if the body is aborted incomplete - listen for abort events separately to check for this.