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

http2 client: fallback to HTTP/1.1 ? #189

Description

@c0b

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

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions