method INotificationHttp.post
INotificationHttp.post(
url: string,
body: string,
headers: Record<string, string>
): Promise<NotificationHttpResponse>

Issues a POST request and returns a mapped response.

Parameters

url: string

The target URL

body: string

The serialized body string

headers: Record<string, string>

Headers to include

Return Type

The mapped response

Throws

Error

When the request fails

Usage

import { type INotificationHttp } from "notification-plugin/src/index.ts";