You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Quick Overview of HTTP/2
HTTP/2 is a new Protocol that is replacing HTTP/1.1 thats currently de-facto standard of web.
Main motivation behind it is Performance.
Its backward compatible. Clients and browsers can use HTTP/1.1 as usual if they don’t support HTTP/2.
With HTTP/2, SSL is recommended for performance reasons, but not compulsory.
The text was updated successfully, but these errors were encountered:
Sounds like a good idea. Didn't realize that web-standalone was using node-fetch. We'll have to change it to use https://github.com/nodejs/undici instead of node-fetch, as that's what we use in electron. This is what nodejs itself uses to provide the fetch api. We use the npm installed package as it provides the latest fixes and nodejs itself takes time to upstream the fixes. undici (fetch) seems to have http2 support as noted in this test: https://github.com/nodejs/undici/blob/981fb3d72a4393f77c9f28e3ea2f77dc4cf6e9ad/test/fetch/http2.js#L46. Just need to make some time to implement this. Should be possible with minimal code changes.
undici provides the same Fetch API interface as node-fetch and browser fetch, so that should make things simple.
got seems to also recommend a newer library called ky which implements the Fetch API interface:
currently I think we are using node-fetch for making requests. Do we consider another lib like https://github.com/sindresorhus/got?tab=readme-ov-file that supports http/2?
A Quick Overview of HTTP/2
HTTP/2 is a new Protocol that is replacing HTTP/1.1 thats currently de-facto standard of web.
Main motivation behind it is Performance.
Its backward compatible. Clients and browsers can use HTTP/1.1 as usual if they don’t support HTTP/2.
With HTTP/2, SSL is recommended for performance reasons, but not compulsory.
The text was updated successfully, but these errors were encountered: