Axinom Mosaic Libraries
    Preparing search index...

    A wrapper for body and headers used to make an request to the webhook API.

    interface WebhookRequest {
        body: string;
        headers: Dict<string>;
    }
    Index

    Properties

    Properties

    body: string

    Stringified JSON message object.

    headers: Dict<string>

    A dictionary of required headers:

    • x-mosaic-signature - custom signature created from stringified body by a hash-based message authentication code (HMAC) with SHA-256.
    • content-type - application/json, to override default content type when a stringified JSON is sent.