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

Hierarchy

  • WebhookRequest

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.

Generated using TypeDoc