Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move away from x-package-json header #2

Open
bmeck opened this issue Aug 29, 2012 · 0 comments
Open

move away from x-package-json header #2

bmeck opened this issue Aug 29, 2012 · 0 comments

Comments

@bmeck
Copy link
Contributor

bmeck commented Aug 29, 2012

We really do not want to store extra state information across requests, right now we get around this by shoe horning package.json info into a header.

  1. Problems

We send multiple things at inopportune times if we want to keep to Stateless based HTTP.

We want to:

  • Send Multiple Files

Multipart/form-data could take care of this but node-formidable is lacking when uploading multiple files at once.

  • Stream back relevant information before determining the status code

NPM Logs

  1. Solution

Unfortunately we need a duplex solution. That means WS://

  • Implement a simple multiplexing protocol, nssocket would not work due to the bloat of sending JSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant