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

HTTP2 Basic Support #902

Closed
RuralDependencies opened this issue Jul 25, 2021 · 6 comments
Closed

HTTP2 Basic Support #902

RuralDependencies opened this issue Jul 25, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@RuralDependencies
Copy link

Hi Hi!

The library would be awesome with even basic HTTP2 support (even without pushes), any lead date?

@RuralDependencies RuralDependencies added the enhancement New feature or request label Jul 25, 2021
@mcollina
Copy link
Member

It'll be done when it will be done.. you can contribute to it!

@vegerot
Copy link

vegerot commented Oct 4, 2023

Has this been added yet? Currently I only get

Missing ALPN Protocol, expected `h2` to be available.
If this is a HTTP request: The server was not configured with the `allowHTTP1` option or a listener for the `unknownProtocol` event.

when trying to fetch from an H2 server

@metcoder95
Copy link
Member

This has been added under the flag allowH2, see https://undici.nodejs.org/#/docs/api/Client

@vegerot
Copy link

vegerot commented Oct 5, 2023

So I have to import Client from undici? There's no way to do it just with Node builtins?

@metcoder95
Copy link
Member

Yes, it stills experimental so it is disabled by default, hence the requirement to construct a Client with Undici

@vegerot
Copy link

vegerot commented Oct 5, 2023

Got it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants