honojs / node-server

Node.js Server for Hono
https://hono.dev
389 stars 48 forks source link

Does Hono support HTTP/2? #184

Open abdurahmanshiine opened 4 months ago

abdurahmanshiine commented 4 months ago

Hi there,

Does hono support http2?

Jayllyz commented 4 months ago

Hi there,

Does hono support http2?

abdurahmanshiine commented 4 months ago

Sorry for not being specific enough. I meant on Bun

MathurAditya724 commented 4 months ago

This is related to bun and not hono, but someone in community came up with this solution -

export default {
  port: 3000,
  fetch: app.fetch,
  certFile: "./cert.pem",
  keyFile: "./key.pem",
};

I think you can get more information about this here - https://bun.sh/docs/api/http#tls

bmstefanski commented 3 months ago

Hono will need to update streaming utility if they want to support HTTP/2. CTE is forbidden with HTTP/2