Skip to content

Interface: WebhookRequest ​

A vendor webhook as the API received it, decoded for the module.

Properties ​

body ​

ts
body: Uint8Array;

headers ​

ts
headers: Record<string, string>;

Header names lower-cased.


method ​

ts
method: string;

query ​

ts
query: Record<string, string>;

Methods ​

json() ​

ts
json(): unknown;

The body parsed as JSON.

Returns ​

unknown


text() ​

ts
text(): string;

The body as UTF-8 text.

Returns ​

string

Released under the Apache-2.0 License.