Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

http2 client: fallback to HTTP/1.1 ? #189

Closed
c0b opened this issue Oct 24, 2017 · 1 comment
Closed

http2 client: fallback to HTTP/1.1 ? #189

c0b opened this issue Oct 24, 2017 · 1 comment

Comments

@c0b
Copy link

c0b commented Oct 24, 2017

I see #125 is about to fallback to HTTP/1.1 on a http2 server side, but how about http2 client? for all current available http client connection packages on npm, I'm not seeing one support http2 yet, include the https://www.npmjs.com/package/request ; wonder is there a way to connect an api server prefer http2 but can fallback to http1 if no h2 support from the server?

can we have an option { allowHTTP1: true } on http2.connect(authority[, options][, listener])

https://nodejs.org/api/http2.html#http2_http2_connect_authority_options_listener

@c0b c0b changed the title http2 client: ALPN fallback to HTTP/1.1 ? http2 client: fallback to HTTP/1.1 ? Oct 24, 2017
@apapirovski
Copy link
Member

Closing stale issues on this repo as the work is happening in https://github.com/nodejs/node now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants