interface INotificationHttp
Since 0.1.0

Injectable HTTP seam for notification providers.

Providers call post(url, body, headers) to issue their HTTP request. The default implementation (createDefaultNotificationHttp) delegates to web-standard fetch.

Methods

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

Issues a POST request and returns a mapped response.

Usage

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