WSH032 / fastapi-proxy-lib

HTTP/WebSocket proxy for starlette/FastAPI
https://wsh032.github.io/fastapi-proxy-lib/
Apache License 2.0
25 stars 4 forks source link

feat: support `anyio`, sending denial response, handshake headers #34

Open WSH032 opened 5 months ago

WSH032 commented 5 months ago

Summary

Added

Changed

Test

Checklist

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 85.41667% with 14 lines in your changes are missing coverage. Please review.

Project coverage is 96.39%. Comparing base (977d9c1) to head (3d2b0ea).

Files Patch % Lines
src/fastapi_proxy_lib/core/websocket.py 84.09% 10 Missing and 4 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #34 +/- ## ========================================== - Coverage 96.74% 96.39% -0.35% ========================================== Files 9 9 Lines 461 472 +11 Branches 67 73 +6 ========================================== + Hits 446 455 +9 - Misses 9 11 +2 Partials 6 6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

WSH032 commented 5 months ago

The test succeeded on Windows but failed on Linux, preventing us from merging. Unfortunately, I don't have time to address this issue at the moment. If someone is willing to pick it up, I can provide guidance.

Need Improvement

TODO

WSH032 commented 4 months ago

I am aware of such downstream use cases, so we cannot deprecate the path parameter, which can allow us to add a dynamic path prefix.