Skip to content

Proposal: HTTP – Move bodyHead to data event #550

Description

@ThisIsMissEm

So, ages and ages ago, for WebSockets support, the idea of an upgradeHead was added. This is for the data that directly trails the headers in a Upgrade or Connect request. Whilst the spec doesn't really say what this is, I propose making this as the first data event, rather than as a extra argument to the upgrade or connect events.

This seems like the better way to do this, although, I know it'd be a huge change in API from what we currently have, which is fairly popularly used at present.

I feel that we should've really implemented it this way round in the first place, but there were a whole bunch of reasons as to why this proved difficult at the time.

Thoughts?

Activity

  1. edef1c commented on Jan 22, 2015

    @edef1c
    Contributor

    a40133d basically tried to fix this, resulting in nodejs/node-v0.x-archive#5557

  2. added
    httpIssues and PRs related to the http subsystem.
    on Jan 23, 2015
  3. ThisIsMissEm commented on Jan 28, 2015

    @ThisIsMissEm
    Author

    Aye, I was talking to nathan when I created this ticket, it would indeed be a breaking change, it would hurt, but it'd mean a more consistent API.

    – Micheil

    On 22 Jan 2015, at 05:37, Nathan Zadoks notifications@github.com wrote:

    https://github.com/joyent/node/commits/a40133d10cdb911b27fe8d46d67a835b0103bbf1 basically tried to fix this, resulting in nodejs/node-v0.x-archive#5557

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

  4. edef1c commented on Jan 28, 2015

    @edef1c
    Contributor

    I'd definitely like to see this fixed — I think this legacy cruft has lived for long enough. I'd have vetoed the original node revert if I could.

  5. stephank commented on Feb 2, 2015

    @stephank

    Relevant (but old) node.js issue/pr: nodejs/node-v0.x-archive#3036

  6. Fishrock123 commented on May 15, 2015

    @Fishrock123
    Contributor

    Maybe also related to nodejs/node-v0.x-archive#4813

  7. stuartpb commented on May 29, 2015

    @stuartpb

    @miksago How does this relate to nodejs/node-v0.x-archive#4813? Does one override the necessity of the other?

  8. ThisIsMissEm commented on May 29, 2015

    @ThisIsMissEm
    Author

    I think nodejs/node-v0.x-archive#4813 closes this nicely.

  9. Fishrock123 commented on May 30, 2015

    @Fishrock123
    Contributor

    Actually it would be better if this were to close the joyent/node issue. :)

  10. added
    semver-majorPRs that contain breaking changes and should be released in the next major version.
    on Mar 11, 2016
  11. jasnell commented on Mar 22, 2016

    @jasnell
    Member

    Is this still something we'd want to do?

  12. added
    stalledIssues and PRs manually marked as stalled and scheduled for automatic closure.
    on Apr 9, 2016
  13. jasnell commented on Aug 5, 2016

    @jasnell
    Member

    Unfortunately, given the lack of any further discussion or action on this, I'm going to close. We can reopen and revisit later if necessary.

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

    feature requestIssues requesting new Node.js features.httpIssues and PRs related to the http subsystem.semver-majorPRs that contain breaking changes and should be released in the next major version.stalledIssues and PRs manually marked as stalled and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions