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

Please Support HTTP/2 Server Push #199

Open
anonyco opened this issue Apr 3, 2020 · 0 comments
Open

Please Support HTTP/2 Server Push #199

anonyco opened this issue Apr 3, 2020 · 0 comments

Comments

@anonyco
Copy link

anonyco commented Apr 3, 2020

I love the speed and performance of Rapidoid, but there would be even greater speed/performance gains if Rapidoid started supporting HTTP/2 push. The majority of users have a browser that supports HTTP/2, so it's time to do it. Here are the features that would need to be implemented:

  • Auto-discovery of HTTP/2: https://http2.github.io/http2-spec/#discover-https
  • boolean supportsHttpPush() and int getHttpVersion() methods on the Resp (https://www.rapidoid.org/docs.html#_the_http_api) class. Currently, supportsHttpPush() will return true when getHttpVersion() is 2, and getHttpVersion() returns 0 for HTTP/1.0, 1 for HTTP/1.1, and 2 for HTTP/2 right now.
  • Resp appendPushPromise(Resp other) appends another Resp onto the HTTP/2 promise frame if the request is HTTP/2 and returns other.

That's all that you need to implement to help us make our websites many many times faster than they already are. Some things down the road to implement:

HTTP/3 will come with some additional enhancements that build ontop of HTTP/2 that you can worry about later (if ever at all). The upgrade from HTTP/1.1 to HTTP/2 is enormous for performance, whereas the upgrade from HTTP/2 to HTTP/3 will not be as dazzling. Nevertheless, you may want to look into HTTP/3 eventually as it will take quite a lot of burden off the server via intelligent caching.

@anonyco anonyco changed the title Are There Plans To Support HTTP/2 Server Push? Please Support HTTP/2 Server Push Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant