honojs / hono

Web framework built on Web Standards
https://hono.dev
MIT License
19.72k stars 560 forks source link

http2 support #3524

Open KilianB opened 6 days ago

KilianB commented 6 days ago

What is the feature you are proposing?

With bun now implementing http2 server functionality https://github.com/oven-sh/bun/pull/14286 (releasing later during this week) what ramification does this have for hono? Is it possible to use them in conjunction or does this require architectural changes on the hono side?

yusukebe commented 4 days ago

Hi @KilianB

Hmmm. node:http2, which is implemented on Bun now, is a Node.js API. The hono package in this repo does not support Node.js API. We may use the API with @hono/node-server, but performance may decrease than you think because this should convert Request/Response to Node.js's IncomingMessage/OutgoingMessage.