-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Question: What is the status of HTTP/2 support? #1713
Comments
We support
For future version use |
As an added note, will respecting the |
@Aghassi no, but fix it very easy |
@evilebottnawi I'm a bit confused: the options file you linked contains no mention of I see it looks like it's coming in #1721, but it sounds like it was there before? |
@jshado1 yep, now it is broken, this PR solve problem, next week release |
Fixed #1713, http2 doesn't support on node >= 10 due |
Mark as |
Any updates on this? |
@hullevive we use |
Still an issue in 2020? Trying to setup a localhost with https. |
@ereztdev please write about it in |
@evilebottnawi Is there a workaround in the meantime with node > 10.0 ? Using http/1.1 is so slow for development... Edit: Here is example of a caddyfile to run a caddy reverse proxy for http/2:
|
@Herz3h you can launch nginx or caddy and setup proxy to webpack-dev-server |
It just got an update this year after a long break, perhaps we should reconsider using it when developers explicitly want to? I'm using |
We should revive this |
The issues preventing |
Node 15.0.1 have HTTP/3 QUIC experimental support. |
How feasible would it be to use a different framework than Express to power webpack-dev-server? Express 5.0, which is tilted to have full http2 support, has been in alpha for about 7 years now, and there is no clear roadmap indicating when it will be released. Competing frameworks (koa, fastify etc) have all supported it for years and are actively maintained. I asked the developers about the maintenance status and roadmap, and it seems to mostly boil down to them not having the resources and hoping the community will pitch in: expressjs/express#4451 |
we are looking at fastify for the our next default development framework |
Express have thrown in the towel on http2: They've essentially said they're married to an underlying dead lib, spdy, for http2 support, so Express is unfortunately dying a slow death. |
Guys, this is awkward, but... I just checked and b0161e9#diff-b706bbadb3d2315d99678f05e1f4bfd78a4bb4a7a6c65f3e81f1386fee3c883aL669-L678 So webpack-dev-server 4.0.0-beta.0 and up should run http/2 just fine. And it does! |
Yep, should work |
Stable release will be today |
Can confirm that |
Can we close this issue then? |
...however, |
Yep, if we need |
Seems like http2 is being supported now, but I observed that the proxy downgrades requests from http2 to http1.1, which was weird 🤔 |
@computnik Can you clarify? |
@computnik @alexander-akait I'm curious if anyone is seeing the following errors related to http2 and chrome: net::ERR_HTTP2_PROTOCOL_ERROR 200 I'm getting these errors intermittently for both API requests using proxy and webpack chunks. I've gone through all of the normal checks for the error (server side settings) and everything looks ok. I did see that the requests are proxied through as HTTP1.1 not 2. |
Hello @alexander-akait 👋 HNY2024 to all developers 🎉 I am wondering about Currently using the Thanks! 🥭 |
@xavierfoucrier I am afraid express doesn't support it 😞 , but we want to allow to customize the |
Thanks @alexander-akait for you fast reply, as usual 🚀 I can understand the main direction, express team look a little bit slow on this 😓 Of course I would really love to be part of the webpack team and help on all webpack repositories: I am already using most of them. Unfortunately it means stop all my current private/professional projects to focus on open source, earn money through Github Sponsoring, and so on.. I am already part of open source teams, give part of my time for community, I guess I won't be lost inside this wide universe 🦄 Anyway, this is something I am (still) interested in! My plans for 2024 are not write into the stone, so feel free to send me a direct message if it's something that could be possible. Always a pleasure to talk with you Alexander 😽 |
HTTP2 support is ready #5267, unfortunately, there are sad news, it is only for The simple solution to use "use strict";
module.exports = {
entry: "./src/index.js",
mode: "development",
devServer: {
app: () => require("connect")(),
server: "http2"
},
}; I plan to close this issue after merge, unfortunately we really can't do anything on the |
Improved by #5267, please read above message Feel free to feedback |
Thanks @alexander-akait for the update 👏 I have planned to check this when I am back from vacations. |
@alexander-akait Fantastic, very excited to have this available! When do you think the version with this available will be ready? |
@bigcakes I think this week |
@alexander-akait it seems that still not released? |
Yeah( Hope will finish it soon, just need to finish - #5275 |
I just dive into this today and it works really fine / fast 🚀 For those who are working with pure ES Modules, here is how you can implement import Connect from 'connect';
export default {
entry: './src/index.js',
mode: 'development',
devServer: {
app: () => Connect(),
server: 'http2'
},
}; |
I spent about an hour digging around yesterday and couldn't find the answer to this question, so I wanted to post here and get some insight.
I read through #516, which seems to indicate there is HTTP/2 supported, but I couldn't find any docs on how to enable it. All I found in the official docs was the line under this section https://webpack.js.org/configuration/dev-server/#devserverhttps saying that it can run with HTTP/2.
In the code in this repo I found this
webpack-dev-server/lib/Server.js
Lines 633 to 660 in 21687c3
All of which links to issues and other repos which have either been closed or have no work being done on them. And according to this comment #1493 (comment), it is planned for v4, but nothing in the 4.0.0 milestone https://github.com/webpack/webpack-dev-server/milestone/4 seems to support that statement.
Ultimately, I'm confused as to the current situation. Does Webpack-Dev-Server support HTTP/2? If not, will it be supported in the future?
The text was updated successfully, but these errors were encountered: