Skip to content

Conversation

@aquapi
Copy link
Contributor

@aquapi aquapi commented Oct 15, 2025

resolves #1221

@aquapi aquapi requested a review from pi0 as a code owner October 15, 2025 15:00
@aquapi
Copy link
Contributor Author

aquapi commented Oct 15, 2025

I need to add tests for this feature as well
We can get some tests from Hono: https://github.com/honojs/hono/blob/main/src/middleware/body-limit/index.test.ts

@aquapi
Copy link
Contributor Author

aquapi commented Oct 25, 2025

@pi0 do u think I should add more tests

@pi0 pi0 changed the title Add request body size limit utility and middleware feat: add assertBodySize util and bodyLimit middleware Oct 25, 2025
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❤️

@pi0 pi0 merged commit 412bba4 into h3js:main Oct 25, 2025
3 checks passed
@pi0
Copy link
Member

pi0 commented Oct 25, 2025

Now we can add it a a Nitro v3 route rule even!

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 request body size limit utility and middleware

2 participants