hyperium / hyperium/http

Any way to convert `HeaderValue` to `Bytes` without copying?

Open
#661 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.4k
Forks
378
Avg merge
1d 21h
Merged PRs (30d)
5

Description

We have HeaderValue::from_maybe_shared to create HeaderValue from Bytes without copying, so what about the reverse?

Contributor guide

No contributing guide indexed for this repository

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 reading the HeaderValue type and the existing from_maybe_shared conversion to understand its ownership and storage model. Then determine whether a reverse conversion to Bytes can preserve the underlying allocation without copying, and document or test the supported result; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.