elysiajs / elysia

Ergonomic Framework for Humans
https://elysiajs.com
MIT License
9.93k stars 211 forks source link

Does this support http2 out of the box? #366

Open coolaj86 opened 9 months ago

coolaj86 commented 9 months ago

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.

go4cas commented 9 months ago

@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.

kravetsone commented 2 months ago

someone start http2-server implementation in Bun

https://github.com/oven-sh/bun/compare/main...ciro/http2-server

image

SaltyAom commented 3 weeks ago

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.