Skip to content

refactor: Rewrite server middleware with websocket support#1473

Open
tpoliaw wants to merge 2 commits intomainfrom
common-middleware
Open

refactor: Rewrite server middleware with websocket support#1473
tpoliaw wants to merge 2 commits intomainfrom
common-middleware

Conversation

@tpoliaw
Copy link
Copy Markdown
Contributor

@tpoliaw tpoliaw commented Apr 7, 2026

The builtin fastapi support for middleware only supports http/rest
requests. To enable the same middleware for websockets, a new
implementation of the starlette middleware is required and it makes
sense to use the same implementation for both protocols.

For rest requests, there should not be any change in behaviour from this
change.

The builtin fastapi support for middleware only supports http/rest
requests. To enable the same middleware for websockets, a new
implementation of the starlette middleware is required and it makes
sense to use the same implementation for both protocols.

For rest requests, there should not be any change in behaviour from this
change.
@tpoliaw tpoliaw requested a review from a team as a code owner April 7, 2026 11:02
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.40%. Comparing base (56e5b2c) to head (943665d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1473      +/-   ##
==========================================
+ Coverage   95.20%   95.40%   +0.19%     
==========================================
  Files          43       44       +1     
  Lines        3128     3154      +26     
==========================================
+ Hits         2978     3009      +31     
+ Misses        150      145       -5     

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

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.

1 participant