fiber icon indicating copy to clipboard operation
fiber copied to clipboard

🚀 HTTP/2 Feature

Open balcieren opened this issue 2 years ago • 7 comments

Usage :

	app := fiber.New(fiber.Config{
		EnableHTTP2: true, // Default: false
	})

	app.Get("/http11", func(c *fiber.Ctx) error {
		return c.JSON(c.IsHTTP11()) //return true without http2 client support
	})

	app.Get("/http2", func(c *fiber.Ctx) error {
		return c.JSON(c.IsHTTP2()) //return true via http2 client support
	})

	app.ListenTLS(":8080", ".github/testdata/public.crt", ".github/testdata/private.key")

Issue #1683

To Do List

  • [x] Add property to app's config.
  • [x] Compatible with prefork.
  • [x] ListenTLS with HTTP/2.
  • [x] ListenMutualTLS with HTTP/2.
  • [x] Add IsHTTP2 and IsHTTP11 functions to context.
  • [x] HTTP2 client support.
  • [x] Add tests.

ZAAAA

balcieren avatar Feb 28 '22 13:02 balcieren

@balcieren @efectn Any updates on this?

gaby avatar Apr 21 '22 04:04 gaby

@balcieren @efectn Any updates on this?

Waiting for:

  • https://github.com/dgrr/http2/issues/59
  • https://github.com/dgrr/http2/issues/58

efectn avatar Apr 21 '22 06:04 efectn

@balcieren @efectn Any updates on this?

We are waiting to stable version.

balcieren avatar Apr 24 '22 18:04 balcieren

Bump

HiperMaximus avatar May 30 '22 08:05 HiperMaximus

Bump

mikestopcontinues avatar Aug 15 '22 14:08 mikestopcontinues

@mikestopcontinues Sadly, this is blocked by the 2 open PR's mentioned before.

gaby avatar Aug 15 '22 14:08 gaby

@mikestopcontinues Sadly, this is blocked by the 2 open PR's mentioned before.

do you mean those issues right?

HasanMdArik avatar Aug 20 '22 17:08 HasanMdArik

Closed the PR due to inactivity of dgrr/http2

efectn avatar Sep 26 '22 06:09 efectn

@efectn Is there a plan for what to do instead?

mikestopcontinues avatar Sep 26 '22 13:09 mikestopcontinues

@efectn Is there a plan for what to do instead?

No, we don't have any plan at the moment

efectn avatar Sep 26 '22 13:09 efectn

@balcieren @efectn Any updates on this?

Waiting for:

Seems like they are forked http2 and fixed those issues

https://github.com/diamondcdn/fasthttp-http2

kitsuniru avatar Nov 26 '22 22:11 kitsuniru

@efectn Maybe this can be re-evaluated with the fork?

gaby avatar Nov 26 '22 22:11 gaby

Sure

efectn avatar Nov 27 '22 08:11 efectn