hyperium / hyperium/hyper

Expect: 100-continue not implemented for HTTP/2

Open
#2,743 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-http2 A-server C-bug E-medium
Dominant language
Rust
Stars
16.3k
Forks
1.8k
Avg merge
1d 22h
Merged PRs (30d)
14

Description

Hyper (server) does not support sending 100 Continue upon receiving an HTTP/2 request with a Expect: 100-continue specified. This is currently blocking moving a project from HTTP/1.1 to HTTP2 for me.

I've been digging through the specs, and as far as I can tell;

HTTP's existing semantics remain unchanged.

An origin server MUST, upon receiving an HTTP/1.1 (or later)
request-line and a complete header section that contains a
100-continue expectation and indicates a request message body will
follow, either send an immediate response with a final status code,
if that status can be determined by examining just the request-line
and header fields, or send an immediate 100 (Continue) response to
encourage the client to send the request's message body. The origin
server MUST NOT wait for the message body before sending the 100
(Continue) response.

I think the simple solution here is to try to replicate the behavior hyper already expose for HTTP/1.1? https://github.com/hyperium/hyper/issues/838

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 tracing Hyper's existing HTTP/1.1 handling for Expect: 100-continue and comparing it with the HTTP/2 request path. Confirm the behavior against the linked HTTP/2 and HTTP Semantics specifications. Done means an HTTP/2 request with Expect: 100-continue receives the appropriate immediate 100 Continue response before its body is sent.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.