Skip to content

[Server] Improve middleware pipeline consistency#262

Merged
chr-hertel merged 1 commit intomainfrom
fix/middleware-consistency
Mar 11, 2026
Merged

[Server] Improve middleware pipeline consistency#262
chr-hertel merged 1 commit intomainfrom
fix/middleware-consistency

Conversation

@chr-hertel
Copy link
Member

  • Make MiddlewareRequestHandler final and use index counter instead of array_shift to avoid mutating internal state
  • Streamline property and factory handling in middleware implementations

makes sense @sveneld?

- Make MiddlewareRequestHandler final and use index counter instead of
  array_shift to avoid mutating internal state
- Make OAuthProxyMiddleware factory discovery consistently lazy via
  getter methods, matching httpClient and requestFactory pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chr-hertel chr-hertel added the Server Issues & PRs related to the Server component label Mar 10, 2026
Copy link
Contributor

@sveneld sveneld 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, clean improvement.

@chr-hertel chr-hertel merged commit eac6f01 into main Mar 11, 2026
19 checks passed
@chr-hertel chr-hertel deleted the fix/middleware-consistency branch March 11, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Server Issues & PRs related to the Server component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants