Does this support http2 out of the box?
Does this enable http2 pipelining and such for streams and API requests?
I saw 0 issues when I searched for "http2", and nothing in the docs search about it.
@coolaj86, as far as I am aware, Bun supports http/2 client only at this time. You can, however, get streaming multiplexing when running your app behind a reverse proxy (Nginx), with http2 enabled.
someone start http2-server implementation in Bun
https://github.com/oven-sh/bun/compare/main...ciro/http2-server
As Elysia is using Bun.serve natively, the problems is blocking on Bun implementation of HTTP2 server.
If Bun support HTTP2 server, then Elysia would likely going to support HTTP2 server by the time Bun support it.
Looks like HTTP2 support is coming in Bun v1.1.31: https://x.com/bunjavascript/status/1847014951661326396
Looks like HTTP2 support is coming in Bun v1.1.31: https://x.com/bunjavascript/status/1847014951661326396
![]()
Yeah really. But this more about node:http2
How will Bun.serve work with it?
Curious to hear what the Bun team says about HTTP2 support in Bun.serve:
https://github.com/oven-sh/bun/issues/14672
Please implement the HTTP/2 feature, as it is one of the most important components for API development.
Workaround: implement your own adapter to use node:http2 -> https://gist.github.com/bogeychan/39290d2dcf468389c7b82dd8bdc7b2e0
Any update on this as Bun now supports HTTP/2 servers with the 1.2 release?
import { createSecureServer } from "node:http2";
Any update on this as Bun now supports HTTP/2 servers with the 1.2 release?
import { createSecureServer } from "node:http2";
Elysia uses Bun.serve so when Bun supports it Elysia will too