Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
HTTP/2 protocol support with Sails #4228
Sails version: v1.0.0-40
Node.js launched with native HTTP/2 recently. HTTP/2 brings request and response multiplexing, header compression and PUSH support which will be very useful for certain kinds of applications.
All I managed to find is a feature request for integration with SPDY, but SPDY is dead.
Are there any plans of supporting HTTP/2 with Sail.js?
@inian Thanks for the interest! This originally came up like 5 years ago, but hadn't been something we'd seen a need for, other than out of curiosity. Now that the landscape has changed, and Node supports http2 in core, hopefully that'll change!
Since Express is a dependency of Sails, expect us to follow a similar path to Express 5. If our team or customers need http2 for an internal use case sooner than the relevant release of Express 5 is available, then it's possible we'll add a shim sooner, but I doubt that will be necessary.
I can confirm here that Express is actively working on it, and Express work has directly lead to vast changes to http2 in Node.js core itself while it was behind a flag in the early Node.js 8.x versions. HTTP/2 support is very exciting to me, and Express does fully support HTTP/2 using the "spdy" user-land module at this time. The introduction of HTTP/2 into Node.js core will bring performance improvements to the implementation of course, but has never been a blocker from using HTTP/2 with Express for the years prior to now :)