How can I specify stream priority while sending http2 requests messages in golang?

Viewed 72

For the client example below, before calling "client.Get()", there is no option to provide the stream priority ?

Do we have any option to specify stream priority ?

client := http.Client{

        Transport: &http2.Transport{

            DialTLS: func(network, addr string, cfg *tls.Config) (net.Conn, error) {

                return net.DialTimeout(network, addr, time.Second)

            },

                AllowHTTP: true,

        },

    }


// can I specify http2 stream priority before calling Get() below ??

    resp, err := client.Get(path)
0 Answers
Related