http2 custom encoder and decoder

43 views
Skip to first unread message

drv drv

unread,
Jan 25, 2022, 2:02:59 PM1/25/22
to golang-nuts

hi,
There is a http2 protocol simulator. It can be client and/or server. I would like to set the encoder and decoder tablesize to 0.
i.e. on client side  I managed to create my own clientConn with transport. NewClientConn(conn)
But all field in clientConn type is unexported.
In this case how suppose to use custom hpack.NewDecoder and hpack.NewEncoder?

(the reason is that if the headers are compressed and a tcpdump is started "on the fly", the headers cannot be decoded by wireshark)

thanks
Reply all
Reply to author
Forward
0 new messages