Skip to content

fix: request body reusability#15

Merged
Yizack merged 4 commits intomainfrom
fix/reusable-body
Jan 23, 2026
Merged

fix: request body reusability#15
Yizack merged 4 commits intomainfrom
fix/reusable-body

Conversation

@Yizack
Copy link
Copy Markdown
Owner

@Yizack Yizack commented Jan 23, 2026

Fixes #14

Webhook validators now use readRawBodyClone/readBodyClone internal helpers that explicitly "cache" the body in the internal event._requestBody h3 property. This ensures users can call readBody() after validation when internal h3 v1 Symbol-based caching is not supported (eg. Netlify). Also prepares support for h3 v2 by cloning the request if available.

@Yizack Yizack merged commit 71c1439 into main Jan 23, 2026
6 checks passed
@Yizack Yizack deleted the fix/reusable-body branch January 27, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📖 Add documentation on recommended way to read body once consumed by validator

1 participant