Skip to content

Decouple DispatchEngine from Router and improve type safety#173

Merged
alganet merged 1 commit intoRespect:masterfrom
alganet:realign
Mar 18, 2026
Merged

Decouple DispatchEngine from Router and improve type safety#173
alganet merged 1 commit intoRespect:masterfrom
alganet:realign

Conversation

@alganet
Copy link
Member

@alganet alganet commented Mar 18, 2026

Introduce RouteProvider interface so DispatchEngine depends on an abstraction rather than Router directly. Replace assert() calls in DispatchContext and RoutinePipeline by threading AbstractRoute as an explicit parameter. Fix AuthBasic to reject non-Basic auth schemes. Rename virtualHost to basePath. Add tests for Accept negotiation, DispatchEngine and RoutinePipeline.

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.08%. Comparing base (533c26c) to head (52f33af).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #173      +/-   ##
============================================
+ Coverage     97.87%   98.08%   +0.20%     
- Complexity      413      415       +2     
============================================
  Files            30       30              
  Lines          1036     1043       +7     
============================================
+ Hits           1014     1023       +9     
+ Misses           22       20       -2     

☔ 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.

Introduce RouteProvider interface so DispatchEngine depends on an
abstraction rather than Router directly. Replace assert() calls in
DispatchContext and RoutinePipeline by threading AbstractRoute as an
explicit parameter. Fix AuthBasic to reject non-Basic auth schemes.
Rename virtualHost to basePath. Add tests for Accept negotiation,
DispatchEngine and RoutinePipeline.
@alganet alganet marked this pull request as ready for review March 18, 2026 03:16
@alganet alganet merged commit d4ec823 into Respect:master Mar 18, 2026
3 checks passed
@alganet alganet deleted the realign branch March 18, 2026 03:17
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.

2 participants