Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Making `preserve_header_order` option official

已关闭
#3,914 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
api

调研方向

从 src/client/conn/http1.rs 的第 473-476 行附近开始,追踪 preserve_header_order 当前是如何被限制在 ffi 后面的。确定将其正式化的阻碍,然后验证该选项无需 ffi 即可使用,并且在代理用例中保留响应头的顺序。

由索引模型根据 Issue 内容生成。

描述

C-feature S-waiting-on-author

Is your feature request related to a problem? Please describe.

Our use case of Hyper is using it as a proxy server. One of the difference from proxy test we found is the order of the headers in the response. The order of the headers may be different in some cases, and we are seeing diff when comparing w/ and w/o Hyper in front of the existing server.

Describe the solution you'd like

Making preserve_header_order to official as it is now ffi.

https://github.com/hyperium/hyper/blob/master/src/client/conn/http1.rs#L473-L476

Describe alternatives you've considered

Use preserve_header_order with ffi enabled.

However, I'd like to understand if there is any blocking issue to make the feature to official.

If there is any, I can also help.

Additional context
Add any other context or screenshots about the feature request here.

主要语言
Rust
星标
16.4k
派生
1.8k
平均合并
5 天 17 分钟
30 天内合并 PR
19

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

hyperium/hyper 的其他 Issue

查看 hyperium/hyper 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。