Repository navigation
fix: polish HTTP headers and configurable response previews - #1
Merged
Merged
Conversation
1lck
marked this pull request as ready for review
November 2, 2026 09:26
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.
修复 HTTP Client 面板重复显示标题、响应头长值挤满页面和 48 KiB 固定预览限制。新版去掉内层标题,响应头按键值分列高亮并提供逐项展开,正文预览支持 48/256/512 KiB(默认 512 KiB),响应头页隐藏 JSON 格式化和正文截断提示。添加随主题着色的 HTTP 工具窗口图标并打入包中。
后端验证预览参数,在 UTF-8 边界截断,同时计算 JSON 转义后的大小并限制在 900 KiB 内,避免超过宿主 1 MiB 结果上限。设置仅在本次页面内保存,下一次发送生效,不保存请求内容。版本更新为 0.1.1,保留已发布的 0.1.0。
验证:fmt、clippy;最终 universal macOS 包 12 项真实协议测试(含不同预览上限、Unicode、转义膨胀和非法设置);真实兼容 Core 清单/调用;8 项浏览器交互检查和长响应头视觉检查。Intel 为交叉构建。市场安装进度属于宿主,另行修复。