grafana/k6

Support unencrypted HTTP/2 connections (i.e. h2c)

Ouverte

#970 ouverte le 21 mars 2019

 (20 commentaires) (31 réactions) (1 personne assignée)Go (1 537 forks)batch import
enhancementevaluation neededhelp wantednew-httprefactortriage

Métriques du dépôt

Stars
 (30 564 étoiles)
Métriques de merge PR
 (Merge moyen 11j 15h) (47 PRs mergées en 30 j)

Description

As seen in this forum question, previously the k6 docs indirectly mentioned support for h2c (HTTP/2 over cleartext TCP) connections. That was incorrect and I've fixed the docs to reflect that, but I'm also adding this issue so we can actually add support for it in the future. Please, add a :+1: here if you have a use case for h2c support in k6.

From a technical standpoint, we should likely do something like this. The problem is comes from the fact, that we rely on a preconfigured http.Transport from the Go stdlib, which we pass through http2.ConfigureTransport(transport) from golang.org/x/net/http2. We can't directly use the http2.Transport from the example above, because it doesn't contain a bunch of the options that http.Transport has and that we use...

Related issues:

Guide contributeur