http3: add basic client-side qlog support (#5374)

This commit is contained in:
Marten Seemann
2025-10-11 16:13:49 +08:00
committed by GitHub
parent 53d246840d
commit 7796175c64
6 changed files with 105 additions and 28 deletions

View File

@@ -28,7 +28,6 @@ func (rw *testResponseWriter) DecodeHeaders(t *testing.T, idx int) map[string][]
rw.Flush()
rw.flushTrailers()
fields := make(map[string][]string)
decoder := qpack.NewDecoder(nil)
startLen := rw.buf.Len()
@@ -51,6 +50,7 @@ func (rw *testResponseWriter) DecodeHeaders(t *testing.T, idx int) map[string][]
assert.Equal(t, headerFrameLen, ev.Raw.Length, "raw.Length")
assert.Equal(t, int(payloadLen), ev.Raw.PayloadLength, "raw.PayloadLength")
fields := make(map[string][]string)
for _, p := range hfs {
fields[p.Name] = append(fields[p.Name], p.Value)
require.Contains(t,