k6 icon indicating copy to clipboard operation
k6 copied to clipboard

HTTP2 with prior knowledge

Open raoufkh opened this issue 3 years ago • 1 comments
trafficstars

Feature Description

Hello

K6 docuementation says that k6 will automatically upgrade to HTTP2 if the server indicates its support for this protocol. However, I've tested with a server supporting this protocol, using this script and upgrading has not been done. So, is there a way to force the K6 client to use HTTP2 done with prior knowledge? Somehow what the --http2-prior-knowledge flag of the tool curl can do.

Bests, Raouf

Suggested Solution (optional)

curl --http2-prior-knowledge

Already existing or connected issues / PRs (optional)

https://github.com/grafana/k6/issues/970

raoufkh avatar Jan 20 '22 10:01 raoufkh

Since you linked https://github.com/grafana/k6/issues/970, was the HTTP2 server you tried to connect to also h2c (unencrypted)?

na-- avatar Jan 21 '22 10:01 na--

We're unlikely to implement this in the current HTTP API, but it will be considered as part of the new API (initial design document). We're still ironing out the design and syntax, so you can follow the issue and document for details.

I'll close this issue in the meantime, as we want to keep a clean roadmap.

imiric avatar Mar 28 '23 11:03 imiric