hyperium / hyperium/hyper

Original Header Cases API

Open
#2,695 14 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-http1 B-rfc C-feature S-needs-HIP
Dominant language
Rust
Stars
16.3k
Forks
1.8k
Avg merge
1d 22h
Merged PRs (30d)
14

Description

This is a tracking issue for the feature to allow for sending and receiving the exact casing of header names, instead of the forced lowercasing of http. In most situations, simply forcing to lowercase is the better option, as it allows for a more performant HeaderMap, and is the required format for newer versions of HTTP (HTTP/2 and 3). However, there are rare occasions when being able to see the exact casing is needed.

Some initial support is available in hyper, and is exposed in the C API. But a public Rust API is not yet available.

  • Initial internal support
  • Expose in C API (#2278)
  • Provide builder options to enable support in Rust, useful to proxies (#2480)
  • Design and export the public extension API

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing internal support in hyper, the exposed C API, and the builder options added for Rust and proxies. The remaining work is to design and export a public Rust extension API for preserving original header casing. Done means the public API is specified and available while retaining the existing lowercase behavior by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.