@amadeus-it-group/kassette
    Preparing search index...

    Interface Payload

    The payload represents the content of an HTTP response from the backend, no matter if it actually comes from it or if it was created manually.

    A payload is often wrapped in PayloadWithOrigin. To create the wrapped payload, you can use createPayload.

    From the wrapped payload, response to the client can be filled with fillResponseFromPayload.

    The payload can also be persisted and read, to avoid contacting the backend later on.

    interface Payload {
        body: string | Buffer<ArrayBufferLike> | null;
        data: MockData;
    }
    Index

    Properties

    Properties

    body: string | Buffer<ArrayBufferLike> | null

    Body of the HTTP response.

    data: MockData

    Data such as http status and headers, response delay.