refactor(proxy): 统一代理拒绝请求生命周期处理 - #266
Merged
Merged
Conversation
g1331
force-pushed
the
refactor/request-log-query-module
branch
from
August 7, 2026 07:22
dcae54e to
d9d1d60
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #266 +/- ##
==========================================
+ Coverage 72.21% 72.22% +0.01%
==========================================
Files 244 244
Lines 14315 14344 +29
Branches 4764 4771 +7
==========================================
+ Hits 10337 10360 +23
- Misses 2609 2613 +4
- Partials 1369 1371 +2
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
统一代理请求生命周期中的拒绝结果,确保上游调用前的拒绝请求保持现有 HTTP 契约,并正确释放队列、并发和取消资源。
Related Issue
Closes #260
Type of Change
Changes
handleProxy的生命周期行为测试。Test Plan
pnpm test:run)pnpm exec tsc --noEmit)pnpm lint)Additional automated verification:
pnpm test:proxy-stabilitypassed, including production build and proxy stability smoke checks.pnpm format:checkpassed.Checklist
Screenshots
Not applicable; this PR has no UI changes.
Additional Notes
jsdoc/require-jsdocwarnings.