Skip to content

HTTP2: Expect: 100-Continue support and early response handling #26930

@geoffkizer

Description

@geoffkizer

We need to add logic to the HTTP implementation to support Expect: 100-continue.

In particular:
(1) If the user sets this header, defer sending the request body until we receive a either a 100 continue, or the 100-continue timeout expires
(2) If instead we receive a final response, and the status code is >=300, we should reset the request stream and stop sending it (if we started due to the timeout expiring)

We should also consider doing (2) above even without Expect: 100-continue. We don't do this for HTTP/1.1 currently, but it's not clear to me why we don't.

Metadata

Metadata

Assignees

Labels

enhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions