k6
k6 copied to clipboard
HTTP2 with prior knowledge
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
Since you linked https://github.com/grafana/k6/issues/970, was the HTTP2 server you tried to connect to also h2c (unencrypted)?
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.