Skip to content

refactor(http/unstable): improve route() method matching#6990

Merged
kt3k merged 2 commits intodenoland:mainfrom
tomas-zijdemans:refactor-route
Feb 16, 2026
Merged

refactor(http/unstable): improve route() method matching#6990
kt3k merged 2 commits intodenoland:mainfrom
tomas-zijdemans:refactor-route

Conversation

@tomas-zijdemans
Copy link
Copy Markdown
Contributor

  • routes without method now match any HTTP method (like Hono)
  • case-insensitive method matching ("post" works the same as "POST")
  • params in handler is no longer optional.
  • fixed typo in doc
  • updated tests

@tomas-zijdemans tomas-zijdemans requested a review from kt3k as a code owner February 7, 2026 11:12
@github-actions github-actions bot added the http label Feb 7, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.20%. Comparing base (e80e6bb) to head (4519c62).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6990      +/-   ##
==========================================
- Coverage   94.26%   94.20%   -0.06%     
==========================================
  Files         602      613      +11     
  Lines       43662    47713    +4051     
  Branches     7063     8299    +1236     
==========================================
+ Hits        41159    44950    +3791     
- Misses       2447     2696     +249     
- Partials       56       67      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

Makes sense to me

ref #5772

@kt3k kt3k merged commit f15429d into denoland:main Feb 16, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants