-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
add transparent http2 #406
Conversation
@devsnek Hey Gus, I’m no maintainer of node-fetch but several other projects out there, some of which depend on node-fetch and I know some of the maintainers personally. I’m sure everyone appreciates that you take time to contribute. I would find your language unnecessary confrontational though. It would be reason enough to just ignore your pull request altogether. Open source tends to be a hostile place some times and your PR has lots of red flags. A lot of people put a lot of time into I would recommend you close your pull request, remove the eslint configuration, leave all the syntax as-is and only submit a minimal pull request with the changes required for http2. If you like, create an issue to suggest to make changes to the code style and wait for the maintainers think of it. And use kind language, it will help a lot to get maintainers attention, I can tell that from my own experience, both as maintainer and contributor |
@gr2m I'm sorry if you found my words or actions abrasive in any way, I didn't intend it. I simply generated an eslint that kept the diff the smallest while keeping all the code in the library consistent. I also kept it in a separate commit. the issue i found was that i couldn't even figure out even whether to use spaces or indents in the project since different files use different styles. |
the mixed use of tab/space is unfortunately the status quo: some files are taken from nodejs core and thus use spaces while the main project was using tab. on topic: http/2 support is too large a feature to be taken in a single PR (in browser it's transparent, nodejs it isn't, at least for now; Timothy might persuade nodejs to add a unified interface for http one day); adding eslint is not helping anyone to review this PR hence nobody did... |
@bitinn this adds the feature as transparent using alpn negotiation. I've been messing around with it on my own request lib (I actually use node-fetch to test my lib 😄) and it seems quite stable. as for the eslint stuff I'll delete the commit |
As I said in #342, we will need an equivalent of
only that the pool should be used not just for redirects but also for general purpose. Thus, putting this on hold for now. |
mvp for http2 support (experimental and dangerous, don't complain if this deletes your cat pictures)
since http2 features and support have been gradually added through node 9.x, it would seem that this feature might need to be explicitly locked to node >= 10
todo