Skip to main content

parse_event

Function parse_event 

Source
pub fn parse_event(body: &[u8]) -> Result<WebhookEvent, WebhookError>
Expand description

Parse a webhook payload into a typed WebhookEvent without verifying it.

Prefer crate::Stream::parse_webhook, which verifies the exact raw bytes before parsing. This helper is intended for payloads already authenticated at another boundary.