Skip to content

Automatically handle 100-Continue requests #363

Closed

Description

Activity

  1. ghost assigned on Mar 7, 2012
  2. modified the milestone: Unplanned on Dec 27, 2019
  3. thboileau-git commented on Nov 23, 2026

    @thboileau-git
    Collaborator

    Closing: Expect: 100-continue is already handled by the HTTP server connectors

    Checked with raw sockets against a live server (the client sends the headers, waits, then sends the 5-byte body):

    Scenario 2.7 (Jetty) 3.0 (Netty)
    no Expect header 200 200
    Expect: 100-continue, resource reads the entity 100 Continue is sent before the body, then 200 same
    Expect: 100-continue, resource does not take the entity 100 Continue, then the final status same
    • 3.0: NettyServerHandler answers the interim 100 Continue itself.
    • 2.7: Jetty does it (JettyServerHelper); Restlet has no code of its own for it, which is why the Expectation data classes alone looked like a gap.

    The behavior is now pinned by ExpectContinueTestCase (3 tests, on the wire) in 3.0 (#1691) and 2.7 (#1692). 2.6 was not checked.

    Side note, not part of this issue: for an unknown expectation (Expect: foo=bar), 2.7 answers 417 Expectation Failed (Jetty) while 3.0 ignores it and answers normally; RFC 9110 §10.1.1 only says the server MAY answer 417.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions