Skip to content

http: improving expectation handling #2403

Description

@jasnell

PR nodejs/node-v0.x-archive#7132 proposed a possible improvement to Expect
handling in http but it never landed. There was a little bit of review, but the conversation
stalled out and the submitted (@alFReD-NSH) moved on to other things. The PR is not
going to be able to land, and it's not a major priority, but I wanted to capture the issue here
before closing the PR. There does not seem to be anything inherently wrong with the change,
it just does not appear to be a significant priority. Additional review is helpful tho.

/cc @indutny

Activity

added
httpIssues and PRs related to the http subsystem.
on Aug 16, 2015

gyzerok commented on Sep 18, 2015

@gyzerok

@jasnell Can I try to get this one?

mnot commented on Sep 19, 2015

@mnot
Contributor

Note that there's a spec change here, see:
http://httpwg.github.io/specs/rfc7231.html#header.expect

A server that receives an Expect field-value other than 100-continue MAY respond with a 417 (Expectation Failed) status code to indicate that the unexpected expectation cannot be met.

...

Note: The Expect header field was added after the original publication of HTTP/1.1 [RFC2068] as both the means to request an interim 100 (Continue) response and the general mechanism for indicating must-understand extensions. However, the extension mechanism has not been used by clients and the must-understand requirements have not been implemented by many servers, rendering the extension mechanism useless. This specification has removed the extension mechanism in order to simplify the definition and processing of 100-continue.

designfrontier commented on Dec 15, 2015

@designfrontier
Contributor

If there is no one else tackling this I'd be happy to grab it and get a PR together. @gyzerok are you still working on this?

guyellis commented on Dec 22, 2015

@guyellis

@designfrontier let me know if you need a hand with this if/when you pick it up.

designfrontier commented on Dec 22, 2015

@designfrontier
Contributor

Ok will do, hoping to pick in the next week right after Christmas.

-Daniel

On Dec 21, 2015, at 6:20 PM, Guy Ellis notifications@github.com wrote:

@designfrontier let me know if you need a hand with this if/when you pick it up.

—
Reply to this email directly or view it on GitHub.

added a commit that references this issue on Jan 13, 2016

evanlucas commented on Jan 20, 2016

@evanlucas
Contributor

Closing as #4501 has landed in master. Feel free to reopen if necessary.

added a commit that references this issue on Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are suitable for first-time contributors.httpIssues and PRs related to the http subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions