hyperium / hyperium/hyper

Trailers support in C API

Open
#2,699 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-ffi C-feature E-easy
Dominant language
Rust
Stars
16.3k
Forks
1.8k
Avg merge
1d 22h
Merged PRs (30d)
14

Description

I'm making curl use hyper instead of its native HTTP code.

curl supports trailers but I find no API to get them provided from hyper so until it does, I can't make curl+hyper match the native implementation in features.

Sample HTTP/1.1 response below. I want the chunky-trailer: header data part.

HTTP/1.1 200 funky chunky!
Server: fakeit/0.9 fakeitbad/1.0
Transfer-Encoding: chunked
Trailer: chunky-trailer

40
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
30
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
21
cccccccccccccccccccccccccccccccc

0
chunky-trailer: header data

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

The issue names no files, entry points, or tests. Start by locating Hyper's C API and the existing trailer handling described in the issue, then determine how the sample HTTP/1.1 trailer should be exposed. Done means the C API can retrieve chunky-trailer: header data and the behavior matches curl's native implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, rust
Domain
api, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.